[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change default value of system variable?



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
230220011054580017%k-bowman@null.tamu.edu">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