David Fanning
2006-02-15 22:09:38 UTC
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
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/
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/