This command will view this Postscript file using a Postscript viewer. This command is currently supported for Windows and Unix/Linux systems.
For both Windows and Unix/Linux systems, the default viewer is ghostview. To specify a different viewer, enter the command
On Unix/Linux systems, <viewer> is case sensitive.
This command is useful when you want to view the Postscript version of the plot without leaving the Dataplot session. The Postscript version of the plot is typically of higher quality than the screen version of the plot.
The October, 2016 version of Dataplot made the following updates to this command.
This syntax displays the plots in the DEVICE 2 file (i.e., the dppl1f.dat file).
This syntax displays the plots in an arbitrary Postscript file. Note that Dataplot does no checking for file existence or whether or not the file is a Postscript file. The invoked Postscript viewer will do this checking.
SET POSTSCRIPT VIEWER "C:\Program Files\GHOSTGUM\GSVIEW32.EXE"
PSVIEW DEVICE 2
There are a several possible solutions to this.
You can request that the plot file not be close by entering the command
This will suppress closing the file. The disadvantage of this is that the last plot in the file may not be complete. A warning will be printed that the last file may not be complete. However, the advantage is that you can continue generating plots to the current plot file.
Alternatively, you can do something like
SET IPL1NA PLOT_NEW.PS
DEVICE 2 POSTSCRIPT
The SET IPL1NA command allows you to specify the name of the plot file (this should come before the DEVICE 2 POSTSCRIPT command). The advantage of this approach is that the last plot will be complete. The disadvantage is that you will create multiple plot files.
2016/10: Support for PSVIEW DEVICE 2
2016/10: Support for arbitrary Postscript files
. Generate a plot and use the "evince" program (Linux) to view the . Postscript version of the graph. . SET POSTSCRIPT VIEWER evince PLOT X**2 FOR X = 1 1 9 PSVIEWProgram 2:
device 2 postscript . char X line blank y1label Y x1label X title automatic title offset 2 . plot x for x = 1 1 9 plot x**2 for x = 1 1 9 plot x**3 for x = 1 1 9 . set psview file close off psview device 2 plot x**4 for x = 1 1 9