comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Routine is not defined for current graphics device.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Routine is not defined for current graphics device. [message #45818] Thu, 13 October 2005 12:17
Maher is currently offline  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
[Message index]
 
Read Message
Previous Topic: List of Points --> ROI via IDLVECTOR data type for iimage itool
Next Topic: Re: Routine is not defined for current graphics device.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:29:06 PDT 2025

Total time taken to generate the page: 0.63620 seconds