Re: Multi-line titles in IDL [message #53671] |
Thu, 26 April 2007 11:12  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jean H. writes:
> What about XYOUTS, with a different entry for each line, along with
> different CHARSIZE values?
>
> ... it might be a bit harder to have it automatically displayed where
> you want (alignment), though as you know the length of each line, it is
> still fairly easy, I guess, to have the text lines located properly!
It is almost trivial, really, especially if you want the
output centered, as is usually done with titles.
Use the !X.WINDOW and !Y.WINDOW values, which locate
the ends of your plot in normalized coordinates
to help with the positioning.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
|
|
|
|
Re: Multi-line titles in IDL [message #53681 is a reply to message #53675] |
Thu, 26 April 2007 07:41   |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Apr 24, 7:13 pm, David Fanning <n...@dfanning.com> wrote:
> smartin writes:
>> Anyone know of a good way to make multi-line titles where each line
>> can have a different size? I can only get multi-line titles using a
>> carriage return in the title keyword.
>
> Huh!?
>
> IDL> plot, findgen(11), position=[0.15, 0.15, 0.9, 0.75], $
> title='This is short!cAnd this is much longer!cand this ' + $
> is much, much, much longer'
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Hmm... unless you're just trying to be cute, David, I think he meant
different FONT sizes...
In that case you have to use more escape code, but I don't have time
to look up the documentation right now.
Cheers!
|
|
|
Re: Multi-line titles in IDL [message #53701 is a reply to message #53681] |
Tue, 24 April 2007 17:13   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
smartin writes:
> Anyone know of a good way to make multi-line titles where each line
> can have a different size? I can only get multi-line titles using a
> carriage return in the title keyword.
Huh!?
IDL> plot, findgen(11), position=[0.15, 0.15, 0.9, 0.75], $
title='This is short!cAnd this is much longer!cand this ' + $
is much, much, much longer'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Multi-line titles in IDL [message #53742 is a reply to message #53676] |
Wed, 02 May 2007 10:01  |
news.qwest.net
Messages: 137 Registered: September 2005
|
Senior Member |
|
|
"David Fanning" <news@dfanning.com> wrote in message
news:MPG.209a7df648f9cc42989f5f@news.frii.com...
> David Fanning writes:
>
>> Humm. I don't thing this is possible
>
> Totally off topic, I know, but recently I notice
> myself typing "thing" when I mean "think" a LOT!
>
> Do you suppose this is evidence of a neurological
> disease? :-(
I thing it is somethink else entirely.
Do you gnow if someone is playink a joge
on you, and switched the geys on your geyboard.
|
|
|