Re: special characters in iTools annotation [message #58093 is a reply to message #58092] |
Tue, 15 January 2008 11:05   |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
David Fanning wrote:
> Benjamin Hornberger writes:
>
>> I am trying to put a "times" symbol (like the letter x, but not exactly,
>> LaTeX $\times$) into an iTools annotation. I found it in the Helvetica
>> font table at position 327 (octal), but I don't know how to add it to
>> the iTools annotation.
>>
>> David's description on http://www.dfanning.com/ographics_tips/greek.html
>> doesn't seem to help because since I am not creating the text object
>> programmatically I can't use the string() function. Or can I somehow?
>
> Well, I didn't know about that article. Neat. :-)
>
> Here is what I just tried, which seemed to work.
> I started an ISurface plot like this:
>
> IDL> iSurface, Loaddata(2), XTitle='This is a title'
>
> Then, I selected the X axis object and brought up its
> property sheet. I found the Title field in this property
> sheet and changed the title to this:
>
> This is a title !9e!x and this is more title
>
> When I hit the carriage return, the epsilon symbol was
> in the title!
>
Yes, I've used that before. However, in that case the special character
is part of the symbol font and corresponds to the letter "e" in the
normal font (Helvetica). In my case, the special character is in the
Helvetica font already, so I shouldn't even have to change fonts, but I
just don't know how to produce that character (since the keyboard
doesn't have a key for it) ...
What would probably work is to find the identifier of that annotation
and modify it programmatically (from the command line) using the
string() function. But it would be nice if there was an easy thing I
could type into the property sheet.
|
|
|