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

Home » Public Forums » archive » Re: How to put prime on axis title such as U'
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: How to put prime on axis title such as U' [message #77827] Wed, 05 October 2011 10:32
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
On Oct 5, 8:51 am, David Fanning <n...@dfanning.com> wrote:
> Brian J. Daniel writes:
>
>> On Oct 4, 10:26 pm, David Fanning <n...@dfanning.com> wrote:
>>> Zhang Bo writes:
>
>>>> On Oct 4, 6:02 pm, David Fanning <n...@dfanning.com> wrote:
>>>> > Zhang Bo writes:
>>>> > > xtitle = 'U'(m/s)' kind of incorrect
>
>>>> >   xtitle = 'U' + cgSymbol('prime') + ' (m/s)'
>
>> From the "more than one way to skin a cat" department:  xtitle='U'' (m/
>> s)'
>
> One advantage of cgSymbol is that the symbols it produces
> will work both on the display and in a PostScript file.
> Normally, this is a hassle to program, since different
> values have to be used on the display and in a PostScript
> file. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Of course the '' trick does not produce any other symbol, but it does
produce the same symbol in postscript as on the display. cgSymbol
works for this and any other symbol. My double-single quote trick is
just a trick I thought worth sharing.
Re: How to put prime on axis title such as U' [message #77831 is a reply to message #77827] Wed, 05 October 2011 05:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Brian J. Daniel writes:

>
> On Oct 4, 10:26 pm, David Fanning <n...@dfanning.com> wrote:
>> Zhang Bo writes:
>>
>>> On Oct 4, 6:02 pm, David Fanning <n...@dfanning.com> wrote:
>>>> Zhang Bo writes:
>>>> > xtitle = 'U'(m/s)' kind of incorrect
>>
>>>>   xtitle = 'U' + cgSymbol('prime') + ' (m/s)'
>
>
> From the "more than one way to skin a cat" department: xtitle='U'' (m/
> s)'

One advantage of cgSymbol is that the symbols it produces
will work both on the display and in a PostScript file.
Normally, this is a hassle to program, since different
values have to be used on the display and in a PostScript
file. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: How to put prime on axis title such as U' [message #77832 is a reply to message #77831] Wed, 05 October 2011 05:45 Go to previous message
Brian Daniel is currently offline  Brian Daniel
Messages: 80
Registered: July 2009
Member
On Oct 4, 10:26 pm, David Fanning <n...@dfanning.com> wrote:
> Zhang Bo writes:
>
>> On Oct 4, 6:02 pm, David Fanning <n...@dfanning.com> wrote:
>>> Zhang Bo writes:
>>>> xtitle = 'U'(m/s)' kind of incorrect
>
>>>   xtitle = 'U' + cgSymbol('prime') + ' (m/s)'


From the "more than one way to skin a cat" department: xtitle='U'' (m/
s)'

-B
Re: How to put prime on axis title such as U' [message #77833 is a reply to message #77832] Tue, 04 October 2011 19:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Zhang Bo writes:

>
> On Oct 4, 6:02 pm, David Fanning <n...@dfanning.com> wrote:
>> Zhang Bo writes:
>>> xtitle = 'U'(m/s)' kind of incorrect
>>
>>   xtitle = 'U' + cgSymbol('prime') + ' (m/s)'
>>
>> Cheers,
>>
>> David
>>
>> --
>> David Fanning, Ph.D.
>> Fanning Software Consulting, Inc.
>> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> This really works. Thanks a lot. David.

Imagine that! ;-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: How to put prime on axis title such as U' [message #77834 is a reply to message #77833] Tue, 04 October 2011 16:14 Go to previous message
Zhang Bo is currently offline  Zhang Bo
Messages: 22
Registered: October 2011
Junior Member
On Oct 4, 6:02 pm, David Fanning <n...@dfanning.com> wrote:
> Zhang Bo writes:
>> xtitle = 'U'(m/s)' kind of incorrect
>
>   xtitle = 'U' + cgSymbol('prime') + ' (m/s)'
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

This really works. Thanks a lot. David.
Re: How to put prime on axis title such as U' [message #77835 is a reply to message #77834] Tue, 04 October 2011 15:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Zhang Bo writes:

> xtitle = 'U'(m/s)' kind of incorrect

xtitle = 'U' + cgSymbol('prime') + ' (m/s)'

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to put prime on axis title such as U'
Next Topic: eh..a question about idl...i really need some help

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

Current Time: Wed Oct 08 11:27:08 PDT 2025

Total time taken to generate the page: 0.00795 seconds