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

Home » Public Forums » archive » Change default value of system variable?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Change default value of system variable? [message #23909 is a reply to message #23844] Mon, 26 February 2001 10:47 Go to previous messageGo to previous message
R.G.S. is currently offline  R.G.S.
Messages: 46
Registered: September 2000
Member
I do the same thing, and am constantly annoyed at the switching of
the defaults.

How about the following:

;****************************************
pro setplot,devicestring
; set the plot and save/restore the !p information

oldp = !p
set_plot,devicestring
!p=oldp

end
;****************************************


; Useage here

; mainlevel test code here

; HEY, specific numbers here, assuming 256 colours
!p.color = 0
!p.background = 255


window,0
erase ; on my comp, the screen starts out black
plot,findgen(10),tit='window first'


setplot,'ps'
plot,findgen(10),tit='ps'
device,/close

setplot,'win'
window,1
erase
plot,findgen(10),tit='window again'


end





Cheers,
bob stockwell
stockwel at co-ra dot com

K. Bowman <k-bowman@null.tamu.edu> wrote in message
news:230220011054580017%k-bowman@null.tamu.edu...
>
> I prefer to plot with black lines on a white background, so in my
> idl_startup file I include
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: survey: accelerated 3D volumetric rendering
Next Topic: Repeats and Triangulation

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

Current Time: Fri Oct 10 04:59:30 PDT 2025

Total time taken to generate the page: 0.56175 seconds