Routine is not defined for current graphics device. [message #45818] |
Thu, 13 October 2005 12:17 |
Maher
Messages: 12 Registered: September 2005
|
Junior Member |
|
|
Hi, I use this little code to view the output on the screen directly or
save it as a PS:
plotps =0 ;1 for postscript
psfilename = 'chicken.ps' ; name of postscript file
if (plotps) then begin
set_plot, 'PS' ; plot results to postscript file
device, /color, filename = psfilename,ysize=15, $
yoffset=1.0,bits_per_pixel=8,/iso,/helvetica,/portrait
!p.font=0
endif
if (plotps eq 0) then window,1, ysize=650,xsize=800
linethick = 1.0
sizeofchar = 1.25
thickofchar = 1.0
!p.charsize = 1.25
Now, if the output is PS, then I change the plotps flag to 0 for direct
view, I get this error:
% WINDOW: Routine is not defined for current graphics device.
I have to close IDL and run it again to run with a plotps =0 flag.
Any hlep is highly appreciated.
Thank you
Maher
|
|
|