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

Home » Public Forums » archive » Text Formatting with TexToIDL
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
Text Formatting with TexToIDL [message #47580] Wed, 15 February 2006 14:09
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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?

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Newbie to satellite data and IDL
Next Topic: Newbie question about map_set/map_continents

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

Current Time: Wed Oct 08 17:33:58 PDT 2025

Total time taken to generate the page: 0.00549 seconds