Example 1

The following sequence of commands draws a graph of `20*X` versus `10*X` and overlays a graph of `(X^3)/10` versus `X^2` on the same set of axes. To see the complete drawing, the `REPLOT` command is used.

     X=[1:20]                   ! create some data
     WINDOW 5                   ! choose graphics window
     SET PCHAR -1               ! set plotting symbol
     GRAPH 20*X 10*X            ! plot 10*X vs 20*X with axes
     SET PCHAR -2               ! choose different plotting symbol
     GRAPH\OVERLAY X^2 (X^3)/10 ! overlay (X^3)/10 vs X^2 on same axes
     CLEAR\-REPLOT              ! clear graphics but not replot buffers
     REPLOT                     ! replot all data on common scale

Clearing the graphics
Example 2