11.07.2015 Views

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

Maple 9 Learning Guide - Maplesoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

116 • Chapter 5: PlottingYou can also change the line style by using the standard menus andthe context-sensitive menus. Similarly, specify the colors of the graphs byusing the color option. Note that in this manual, the lines appear in twodifferent shades of gray.> plot( [ [f(x), D(f)(x), x=-2..2],> [D(f)(x), (D@@2)(f)(x), x=-2..2] ],> color=[gold, plum] );432101 2 3 4 5–1For more details on colors, refer to the ?plot,color help page.Plotting Data PointsTo plot numeric data, call pointplot in the plots package with the datain a list of lists of the form[[x 1 , y 1 ], [x 2 , y 2 ], . . . , [x n , y n ]].If the list is long, assign it to a name.> data_list:=[[-2,4],[-1,1],[0, 0],[1,1],[2,4],[3,9],[4,16]];data_list :=[[−2, 4], [−1, 1], [0, 0], [1, 1], [2, 4], [3, 9], [4, 16]]> pointplot(data_list);

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

Saved successfully!

Ooh no, something went wrong!