11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming 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.

248 • Chapter 6: <strong>Programming</strong> with Maple Graphicsproduces a plot similar to the one just generated, except that it produces5 contours at levels −2, −1, 0, 1, and 2.Creating a TilingThe plottools package provides a convenient environment for programminggraphical procedures. For example, you can draw circular arcs in aunit square.> with(plots): with(plottools):Warning, the name changecoords has been redefinedWarning, the name arrow has been redefined> a := rectangle( [0,0], [1,1] ),> arc( [0,0], 0.5, 0..Pi/2 ),> arc( [1,1], 0.5, Pi..3*Pi/2 ):> b := rectangle( [1.5,0], [2.5,1] ),> arc( [1.5,1], 0.5, -Pi/2..0 ),> arc( [2.5,0], 0.5, Pi/2..Pi ):You must use display from the plots package to show the objects thatrectangle and arc create.> display( a, b, axes=none, scaling=constrained );

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

Saved successfully!

Ooh no, something went wrong!