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

Home » Public Forums » archive » Color Fonts?!?!?
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: Color Fonts?!?!? [message #30353 is a reply to message #30304] Thu, 18 April 2002 11:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sean Davis (sdavis@nis.lanl.gov) writes:

> I'm not sure I understand how to find where the XTITLE would have been
> placed on the plot, in the monochrome case. If you knew where the XTITLE
> would have been placed, then it seems that using XYOUTS would work great.
>
> For example, the monochrome case would be
>
> PLOT, findgen(20), xtitle = 'This is a cool title'
>
> It seems to me you're saying that if I wanted the word 'cool' to be blue,
> I could do the following:
>
> 1. PLOT, findgen(20)
>
> 2. Break the title string into 3 strings
>
> 3. Make 3 calls to XYOUTS
>
> So my question is, how would I know the correct positions to send to
> XYOUTS so that the xtitle appears in the same place as it would as if I
> had just called
>
> PLOT, findgen(20), xtitle='this is a cool title'
>
> ???

Uh, oh. I was afraid this wasn't as easy as Ken thought
it would be. :-(

I'd start with !X.Window and !Y.Window as likely places
to figure out where a title goes. Just be sure you like
Charsize=1, or you might *really* get bogged down. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
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
Read Message
Previous Topic: Is there a fast Complex ATAN in IDL 5.5?
Next Topic: From a novice in IDL

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

Current Time: Wed Dec 03 10:46:34 PST 2025

Total time taken to generate the page: 0.23177 seconds