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

Home » Public Forums » archive » sqrt in legend() crossing power index
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
sqrt in legend() crossing power index [message #93208] Thu, 12 May 2016 10:26 Go to next message
Gregory is currently offline  Gregory
Messages: 2
Registered: August 2009
Junior Member
I am trying to write something on a plot, and using \sqrt{} in latex mode in legend() function
produces somewhat annoying appearence - sqrt feature crosses power index: it can be seen in the example below.

p=plot([0,1],[0,1],name='best fit function 2.35w$\sqrt{N^2 + EF\slash w}$')
legend=legend(target=[p],pos=[0.8,0.3])

Anyone knows how to fix that?
I am using idl8.3 in this case.
Re: sqrt in legend() crossing power index [message #93211 is a reply to message #93208] Thu, 12 May 2016 12:52 Go to previous messageGo to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
You can make the exponent smaller with the !E positioning command

p=plot([0,1],[0,1],name='best fit function 2.35w$\sqrt{N!E2!N + EF\slash w}$')

though it still overlaps the square root top bar.

I'd probably just write out "SQRT( )" rather than make the symbol. --Wayne

On Thursday, May 12, 2016 at 1:26:20 PM UTC-4, Gregory wrote:
> I am trying to write something on a plot, and using \sqrt{} in latex mode in legend() function
> produces somewhat annoying appearence - sqrt feature crosses power index: it can be seen in the example below.
>
> p=plot([0,1],[0,1],name='best fit function 2.35w$\sqrt{N^2 + EF\slash w}$')
> legend=legend(target=[p],pos=[0.8,0.3])
>
> Anyone knows how to fix that?
> I am using idl8.3 in this case.
Re: sqrt in legend() crossing power index [message #93212 is a reply to message #93211] Fri, 13 May 2016 02:39 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le jeudi 12 mai 2016 21:52:30 UTC+2, wlandsman a écrit :
> You can make the exponent smaller with the !E positioning command
>
> p=plot([0,1],[0,1],name='best fit function 2.35w$\sqrt{N!E2!N + EF\slash w}$')
>
> though it still overlaps the square root top bar.
>
> I'd probably just write out "SQRT( )" rather than make the symbol. --Wayne
>
> On Thursday, May 12, 2016 at 1:26:20 PM UTC-4, Gregory wrote:
>> I am trying to write something on a plot, and using \sqrt{} in latex mode in legend() function
>> produces somewhat annoying appearence - sqrt feature crosses power index: it can be seen in the example below.
>>
>> p=plot([0,1],[0,1],name='best fit function 2.35w$\sqrt{N^2 + EF\slash w}$')
>> legend=legend(target=[p],pos=[0.8,0.3])
>>
>> Anyone knows how to fix that?
>> I am using idl8.3 in this case.

Another solution might be to write: 2.35w$\{N^2 + EF\slash w}^{1/2}$
alx.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Plot radiances vs wavelengths
Next Topic: SPAWN result

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

Current Time: Wed Oct 08 09:19:21 PDT 2025

Total time taken to generate the page: 0.00454 seconds