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

Home » Public Forums » archive » mathematical symbols
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
mathematical symbols [message #86589] Thu, 21 November 2013 08:01 Go to next message
fd_luni is currently offline  fd_luni
Messages: 66
Registered: January 2013
Member
I was trying to name the x and y axis in my plot. I downloaded the cgSymbols but I can only add Greek letters. I used LaTex style to perform the names of the axis but I couldn't find out the power symbol I tried $x^2$ but it doesn't work.
Re: mathematical symbols [message #86590 is a reply to message #86589] Thu, 21 November 2013 08:45 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Thursday, November 21, 2013 11:01:41 AM UTC-5, fd_...@mail.com wrote:
> I was trying to name the x and y axis in my plot. I downloaded the cgSymbols but I can only add Greek letters. I used LaTex style to perform the names of the axis but I couldn't find out the power symbol I tried $x^2$ but it doesn't work.

Look at
http://www.idlcoyote.com/cg_tips/embedsymbols.php
and try
IDL> cgplot,indgen(10),xtit='x$\up2$'

If you want to use the LaTex symbols instead look at
http://www.idlcoyote.com/cg_tips/textoidl.php
Re: mathematical symbols [message #86600 is a reply to message #86590] Fri, 22 November 2013 00:05 Go to previous messageGo to next message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le jeudi 21 novembre 2013 17:45:40 UTC+1, wlandsman a écrit :
> On Thursday, November 21, 2013 11:01:41 AM UTC-5, fd_...@mail.com wrote:
>
>> I was trying to name the x and y axis in my plot. I downloaded the cgSymbols but I can only add Greek letters. I used LaTex style to perform the names of the axis but I couldn't find out the power symbol I tried $x^2$ but it doesn't work.
>
>
>
> Look at
>
> http://www.idlcoyote.com/cg_tips/embedsymbols.php
>
> and try
>
> IDL> cgplot,indgen(10),xtit='x$\up2$'
>
>
>
> If you want to use the LaTex symbols instead look at
>
> http://www.idlcoyote.com/cg_tips/textoidl.php


LaTeX capability was introduced in NG functions:

pl = plot(indgen(10), XTITLE='$x^{2+z}$')

alx.
Re: mathematical symbols [message #86603 is a reply to message #86600] Fri, 22 November 2013 03:18 Go to previous message
fd_luni is currently offline  fd_luni
Messages: 66
Registered: January 2013
Member
Now it works. Thanks for your help.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: !p.multi , colorbar&set_viewport ?
Next Topic: CURVEFIT function

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

Current Time: Wed Oct 08 11:36:15 PDT 2025

Total time taken to generate the page: 0.00659 seconds