CPD

CPD [$] Change the current plotting device. The current plot device is released; the next plot will be produced on the new device. By default PLT uses the plotting device specified in the PGPLOT_TYPE environment variable. If this variable is not defined then PLT will prompt for a plotting device at startup.

Note: "CPD" with no argument releases the current plotting device. This is useful when plotting to a file and closing the device is necessary to get PGPLOT properly terminate and close the file. Also "CPD ?" will list all the devices supported.

examples

PLT> CPD /PS         ! Output Postscript commands to a file
PLT> Plot            ! Send the current plot to the file
PLT> CPD             ! Close the file

Return to plt main page.