Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 803
News FAQ
Search Home


next up previous contents
Next: Interacting with the PGplotter Up: Plotting Previous: Summary

Creating a PGplotter tool

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


next up previous contents
Next: Interacting with the PGplotter Up: Plotting Previous: Summary   Contents
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2004-08-28