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

Home » Public Forums » archive » Re: Postscript line thickness
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: Postscript line thickness [message #35152 is a reply to message #35145] Mon, 19 May 2003 06:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Haje Korth (haje.korth@jhuapl.edu) writes:

> Does anyone know how the value of the line thickness keyword translates to
> points in the Postscript device. I am getting so tired of having to change
> all my graphics by hand for publication. Your help out of my misery is
> greatly appreciated!

I don't know anything about how thickness keywords
translate into points, but I do know that doing things
by hand is a bit passe in the computer world. :-)

A little bit of foresight goes a long way when writing
IDL programs. For example, if you know you have a graphics
display program that you are going to want to make a
PostScript file of (and aren't *all* of them this way?),
then something like this works well:

PRO NicePlot, data

IF !D.Name EQ 'PS' OR !D.Name EQ 'PRINTER' THEN BEGIN
psthick = 3
thick = !P.Thick
xthick = !X.Thick
ythick = !Y.Thick
zthick = !Z.Thick
font = !P.Font
!P.Thick = psthick
!X.Thick = psthick
!Y.Thick = psthick
!Z.Thick = psthick
!P.Font = 0 ; or 1, your choice
ENDIF

; Your normal graphics here. For example,
Plot, data

IF !D.Name EQ 'PS' OR !D.Name EQ 'PRINTER' THEN BEGIN
!P.Thick = thick
!X.Thick = xthick
!Y.Thick = ythick
!Z.Thick = zthick
!P.Font = font
ENDIF
END

If 3 is not the right value, then--at worst--you only
have to make a single change in your file. And you
could even put the value in as a keyword! :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RFC 1: Common functions for beginners
Next Topic: IDL random number generator

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

Current Time: Wed Oct 08 19:21:07 PDT 2025

Total time taken to generate the page: 0.00404 seconds