Plotting

 

Topic Overview:
plot
.

Basic Plotting - two dimensional

  plot                                                                            
  Description: lets you create a two-dimensional plot of the solution on some interval.
  Example: We are plotting the solution from the interval set to x.
 

> plot(cos(x) + sin(x), x=0..Pi);


Plotting Options

  Description: We can plot in different colors, add titles, and more. Refer to the help manual for specifics.,
  Example:
 

> plot(cos,color=pink,title=`Pretty cosine in pink`);


Multiple Plotting

  plot                                                                            
  Description: Multiple plots (in a set or list)
  Example:
 

> plot([sin(x), x-x^3/6], x=0..2, color=[red,blue], style=[point,line]);


Point Plotting

  plot                                                                            
  Description: Plotting points
  Example:
 

> l := [[ n, sin(n)] $n=1..10];
plot(l, x=0..15, style=point,symbol=circle);


Plotting with polar coordinates (with thickened curve)

  plot                                                                            
  Description: Multiple plots (in a set or list)
  Example: Here we can plot polar coordinates and set the thickness.
 

> plot([sin(4*x),x,x=0..2*Pi],coords=polar,thickness=3);