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

Home » Public Forums » archive » Re: Text Formatting with TexToIDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Text Formatting with TexToIDL [message #47575 is a reply to message #47570] Wed, 15 February 2006 14:29 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Folks,
>
> Here is a straightforward string using TexToIDL:
>
> IDL> xyouts, 0.5, 0.5, charsize=2.5, align=0.5, /normal, $
> textoidl(' \lambda_{1} (nm)')
> IDL> Print, textoidl(' \lambda_{1} (nm)')
> !7k!X!D1!N (nm)
>
> Just what I want. But...I want it in object graphics:
>
> IDL> string = textoidl(' \lambda_{1} (nm)')
> IDL> text = obj_new('idlgrtext', string, ENABLE_FORMATTING=1)
> IDL> xobjview, text
>
> NOT what I want. :-(
>
> What good is it to enable formatting if I'm going to get something
> completely different!?
>
> Any ideas?

This works:

IDL> s2='!Ml!X!D1!N (nm)'
IDL> text = obj_new('idlgrtext', s2, ENABLE_FORMATTING=1)
IDL> xobjview, text

I have similar problems with PS output in DG (i.e the difference between on screen chars
and PS output when !p.font=1) but it happens rarely enough that I've never bothered to
figure it out for good.

paulv

p.s. To have the character "k" correspond to lambda in the IDL font list/whatever makes no
sense (to me at least).

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help plotting a 3D Carioid...
Next Topic: Re: Newbie to satellite data and IDL

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

Current Time: Sat Oct 11 10:41:44 PDT 2025

Total time taken to generate the page: 0.16326 seconds