Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | plotter | |
Tool | pgplotmanager |
The most common use of this tool might be to temporarily pass the displaylist to another pgplotmanager tool. In this case, ownplaylist parameter to the constructor should be set to F to prevent the second pgplotmanager tool does not shut it down. (See example below.)
You could also use this function to, for example, go backwards through the plot command to find the last data plotted, extract it, fit it, and plot the fit to the data.
# create the widget f := frame(); pgpa := pgplot(f); pgpw := pgplotmanager(pgpa); pgpa := F; # do some plotting pgpm.env(0, 2 * pi, -1, 1, 0, 0); # create a manager of a postscript file, passing in the displaylist # from the widget dl := pgpw.displaylist(); pgpf := pgplotps('plot.ps', playlist=dl, ownplaylist=F); # replay plotting commands to file pgpf.refresh(); pgpf.done(); # PostScript file is now closed # do some more plotting in the widget pgpw.arro(1, -1, 5, -0.5);