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

Home » Public Forums » archive » Re: thick-bold lines?
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: thick-bold lines? [message #54006] Tue, 15 May 2007 07:30 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
cmancone@ufl.edu wrote:
> Ah, good point. My suggestion has the disadvantage of changing the
> global plot variables, so all plots you make will have thicker lines.
> Of course, this can be useful if you always want thicker lines (I
> usually do), but it looks ugly when making plots in idl plot windows,
> instead of .ps files.

Not really:

pro mydataplot, x, y, ps=ps
thick = 1 ; Default thickness for screen plot
if ( keyword_set(ps) ) then thick = 3

plot, x, y, $
THICK = thick, $
XTHICK = thick, $
YTHICK = thick
end

where the "ps" keyword indicates that the PS output device has been setup already.

Typically, when I'm producing plots where I also want PS output, a little program like the
above is in order. Guaranteed I'm going to want to do it more than once.

If it's something you do all the time, you may want to put the attribute switching to/from
screen or PS output in its own procedure, e.g.

pro mydataplot, x, y, ps=ps
set_plotdefaults, myp, ps=ps

plot, x, y, $
THICK = myp.thick, $
XTHICK = myp.xthick, $
YTHICK = myp.ythick
....etc...

end

Or... maybe some judicious use of the _EXTRA keyword?

cheers,

paulv

--
Paul van Delst Ride lots.
CIMSS @ NOAA/NCEP/EMC Eddy Merckx
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to return Values from an options dialog widget to the main program (Pointers)
Next Topic: Re: Z Profile

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

Current Time: Sat Oct 11 12:18:18 PDT 2025

Total time taken to generate the page: 0.00911 seconds