|
From: Bernd G. <gri...@un...> - 2006-07-24 13:20:50
|
Hi Henry, I had a similar problem like you. I figured out that gnuplot overwrites the output file (in your case "plot.ps") with an empty postscript file if you don't set output again before replot! That means: set term postscript set output "plot.ps" replot !lp plot.ps set output set term x11 replot That must solve your problem! Regards, Bernd Henry FISCHER schrieb: > Dear gnuplot-info, > > I'm running the following gnuplot on a SuSe 9.3 Linux PC: > > G N U P L O T > Version 4.0 patchlevel 0 > last modified Thu Apr 15 14:44:22 CEST 2004 > System: Linux 2.6.11.4-21.9-default > > Copyright (C) 1986 - 1993, 1998, 2004 > Thomas Williams, Colin Kelley and many others > > In general I use the following command file for printing plots: > > # gnuplot command file to write "plot.ps" with most recent plot, send > the *.ps > # file to the default printer, and then return to X11 and refresh the > screen. > set term postscript > set output "plot.ps" > replot > !lp plot.ps > set term x11 > replot > > -- which still works for the printer, but I'm not able to visualize the > outputed plot.ps file using gv or display: I just get a blank white screen. > The size of the plot.ps file is correct -- perhaps it's missing a showpage? > Again, the printer prints it fine, I just can visualise it -- I tried > converting > it to *.pdf using ps2pdf, but that didn't help. > > Is my command file above the right way to generate and print a *.ps file? > > Thanks for your help, > > -- Henry Fischer > > |