11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.2 <strong>Programming</strong> with Plotting Library Functions • 219Every plotting procedure allows for optional arguments. You give theoptional information in the form name=option. Some of these optionsaffect the amount of information concerning the function that you give tothe plotting procedures. The grid option that the Mandelbrot set exampleuses is an instance of using an optional argument. You can use otheroptions for specifying visual information once you have determined thegraphical points. The type of axes, shading, surface style, line styles, andcoloring are a few of the options available in this category. For informationabout the options for the two-dimensional and three-dimensional cases,see the help pages ?plot,options and ?plot3d,options.Any graphics routine you create should allow users a similar set of options.When writing programs that call existing Maple graphics routines,simply pass the potential optional arguments directly to these routines.6.2 <strong>Programming</strong> with Plotting Library FunctionsThis section gives examples of programming with the graphics proceduresin Maple.Plotting a LoopConsider the first problem of plotting a loop from a list of data.> L1 := [ [5,29], [11,23], [11,36], [9,35] ];L1 := [[5, 29], [11, 23], [11, 36], [9, 35]]The plot command draws lines between the listed points.> plot( L1 );

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

Saved successfully!

Ooh no, something went wrong!