Re: How to put prime on axis title such as U' [message #77827] |
Wed, 05 October 2011 10:32 |
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  |
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  |
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  |
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  |
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.
|
|
|
|