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

Home » Public Forums » archive » Re: Multi-line titles in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Multi-line titles in IDL [message #53671] Thu, 26 April 2007 11:12 Go to next message
David Fanning is currently offline  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 #53673 is a reply to message #53671] Thu, 26 April 2007 09:39 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
smartin wrote:
> Hello,
>
> 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.
>
> Thanks.
>

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!

Jean
Re: Multi-line titles in IDL [message #53675 is a reply to message #53673] Thu, 26 April 2007 08:59 Go to previous messageGo to next message
Greg Hennessy is currently offline  Greg Hennessy
Messages: 45
Registered: November 2005
Member
On 2007-04-26, David Fanning <news@dfanning.com> wrote:
> 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 don't thing so.
Re: Multi-line titles in IDL [message #53676 is a reply to message #53675] Thu, 26 April 2007 09:15 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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? :-(

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 #53677 is a reply to message #53675] Thu, 26 April 2007 09:09 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
hradilv writes:

> 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.

Oh, that completely escaped me. (No pun intended.)

Humm. I don't thing this is possible, except for
subscripts and superscripts.

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 Go to previous messageGo to next message
Vince Hradil is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous message
news.qwest.net is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Work-around for the Shortcomings of Widget_Tab
Next Topic: Work-around for the Shortcomings of Widget_Tab

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

Current Time: Fri Oct 10 09:58:34 PDT 2025

Total time taken to generate the page: 1.12147 seconds