How do I use PGPLOT?

To use pgplot to display plots to an x-term window on an LPL Solaris system, csh and tcsh users should use the following commands to set up their environment:

setenv PGPLOT_DIR /usr/lpl/pgplot 
setenv LD_LIBRARY_PATH /usr/lib:/usr/lpl/lib:/usr/local/lib:/opt/sfw/lib:/usr/openwin/lib:/usr/ucblib:/usr/lpl/pgplot

You might also need to set your DISPLAY env variable in order to send the output of PGPLOT to your workstation: 
setenv DISPLAY ip-address-of-your-workstation:0.0

Then run the pgplot demo to check your env:

(answer the device prompt with: /XWINDOW)

If you are connecting from a PC or a Mac to the Solaris system, you will need to start an X server on your PC or Mac before connecting to the Solaris system. 
MacOS X users can download X11 from Apple, install, and run X11 (the install is very easy). 
PC users can download, install, and run X-Win 32

Click here for more information on PGPLOT: PGPLOT Home Page