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

Home » Public Forums » archive » Re: From tvscale to cgImage, puzzling feature in the plot
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: From tvscale to cgImage, puzzling feature in the plot [message #83522 is a reply to message #83428] Thu, 07 March 2013 07:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> cgText, p[0]+0.13, p[3]-0.08, vel, charthick=1.,charsize=2, $
> Font = -1, /normal, color = 'white'

By the way, I wouldn't set the FONT keyword on Coyote Graphics routines.
The font type is normally determined in Coyote Graphics routines by the
particular device you are using. So Hershey fonts on the display and
true-type fonts in PostScript. Here you will never get this text to look
great in PostScript output (or, by extension, on high-resolution raster
output, such as PNG files).

Also the character size and thickness is adjusted properly for the
different between the device and PostScript output, so you rarely have
to bother with this either. (I'm talking about setting up your
PostScript output with PS_Start.) All thicknesses are multiplied
by three, for example, to give the proper "weight" to PostScript lines.

Also character size is adjusted for different devices with
cgDefCharsize. This is about the only thing I sometimes find myself
adjusting in programs, and then only to make the actual character size
smaller for legends and the like. I usually write my code like this:

textSizeAdjustment = (!D.Name EQ 'PS') ? 0.65 : 0.85
textSize = cgDefCharSize()*testSizeAdjustment
cgText, ...., Charsize=textSize

This preserves the character size differences between the display and a
PostScript file, and makes the PostScript output a more faithful
representation of what I see on the display.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CALL_EXTERNAL
Next Topic: From tvscale to cgImage, puzzling feature in the plot

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

Current Time: Wed Oct 08 14:32:47 PDT 2025

Total time taken to generate the page: 0.00329 seconds