| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 803 |
|
A PGplotter tool is created from the Glish prompt as follows:
include 'pgplotter.g' pg:=pgplotter()
The specific PGplotter tool, pg, is now ready to accept plotting instructions. The following complete example shows how to make a simple line plot:
include 'pgplotter.g' # x := 1:100 y := sin(x/5) pg:=pgplotter() pg.plotxy1(x,y,'X','Y','Sample') # y := cos(x/3) pg.plotxy1(x,y) # Adds to plot with new colour