12.07.2015 Views

Learning Guide Learning Guide

Learning Guide Learning Guide

Learning Guide Learning Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

126 • Chapter 4: Graphics> plot( x^2, x=0..3, labels=["time", "velocity"],> labeldirections=[horizontal,vertical] );You can print labels only if your plot displays axes. For threedimensionalgraphs, there are no axes by default. You must use the axesoption.> plot3d( sin(x*y), x=-1..1, y=-1..1,> labels=["length", "width", "height"], axes=FRAMED );height0.8–0.8–1–1width11lengthThe legend option enables you to add a text legend to your plot.> plot( [sin(x), cos(x)], x=-3*Pi/2..3*Pi/2, linestyle=[1,4],> legend=["The Sine Function", "The Cosine Function"] );

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!