sqrt in legend() crossing power index [message #93208] |
Thu, 12 May 2016 10:26  |
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   |
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  |
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.
|
|
|