next up previous contents index
Next: A graph with Up: Plotting symbols Previous: Size and angle

Plotting a vector field

  

The following commands illustrate one way to plot a vector field, where the angle of the plotting symbols conveys information.

     

 GENERATE A 0,,360 20      ! create vector A: min= 0, max= 360, length= 20
 GENERATE R 5,,5 20        ! create vector R: min= 5, max= 5, length= 20 
 SET PCHAR -18 1 1 A       ! symbol `centered arrow', size 1, colour 1, angle A 
 GRAPH\POLAR R A           ! draw graph in polar coordinates 
 GRAPH\-AXES\POLAR R/2 A   ! overlay curve in polar coordinates 
 SET PCHAR -18 1 1 90-A    ! symbol `centered arrow', size 1, colour 1, angle 90-A 
 GRAPH\-AXES\POLAR 3*R/4 A ! overlay curve