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

Home » Public Forums » archive » Re: How can we pass Greek symbols and formula to IPLOT?
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: How can we pass Greek symbols and formula to IPLOT? [message #69508 is a reply to message #69499] Mon, 18 January 2010 08:04 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jan 18, 9:46 am, Dave_Poreh <d.po...@gmail.com> wrote:
> How can we pass Greek symbols and formula to IPLOT?
> Any help highly would be appreciated.

The same way as in direct graphics. The iTools use TrueType fonts by
default, but you can use Hershey fonts as well. For instance:

iplot,findgen(10),xtitle="!10abc!X",ytitle="!Z('00B5'X)!M "+string(165B)
+"!X"

A more convenient way to write the strings for greek letters is to use
David's greek() function:

http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/0e48fc1f867a4816#

It selects the strings for Hershey or TrueType based on the current
direct graphics device. So if you are using only iplot with the
default fonts, you can change the device to ps, to make greek() use
the strings for TureType:

set_plot,'ps'
iplot,findgen(10),xtitle=greek('Omega')+greek('alpha')

Or, if you can live with Hershey fonts, you can use TeXtoIDL, as in

iplot,findgen(10),xtitle=textoidl('\Omega\alpha'),xtickfont_ index=4

TeXtoIDL is at

http://physweb.mnstate.edu/mcraig/textoidl/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI geographic link programmatically
Next Topic: paypal payment wholesale brand shoes,clothing,watch,handbag,jean,ugg boot,t-shirt,jersey,eyeglass,belt,wallet and so on

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

Current Time: Sun Oct 12 02:38:37 PDT 2025

Total time taken to generate the page: 1.84572 seconds