help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off TeX for legend labels


From: Ben Abbott
Subject: Re: Turn off TeX for legend labels
Date: Wed, 15 Apr 2009 10:44:33 -0400

On Wednesday, April 15, 2009, at 10:07AM, "Ivan Sutoris" <address@hidden> wrote:
>On Wed, Apr 15, 2009 at 3:41 PM, Ben Abbott <address@hidden> wrote:
>>
>> You've infered incorrectly. The plot handle is for the line objects, not the 
>> axes. The two examples below should be equivalent.
>>
>> h = plot (0:10);
>> set (h, "interpreter", "none")
>> plot (0:10, "interpreter", "none")
>
>> Regarding a workaround, did you catch the one I posted yesterday?
>>
>>> octave:1> x = 0:0.1:5;
>>> octave:2> plot(x,sin(x),x,cos(x))
>>> octave:3> legend ("\\alpha", "\\beta")
>>> octave:4> set (findobj (gca, "-property", "keylabel"), "interpreter", 
>>> "none")
>
>Shouldn't the two codes above do the same thing in principle? The
>problem seems to be that while this is the correct way to disable tex
>rendering for legend entries in Octave, as Andy wrote in fact
>subscripts are still rendered (I can confirm that with development
>version), which is probably a bug.
>
>Regards
>Ivan Sutoris

Agreed. I'd missed that Andy was speaking specifically of the underscore.

I did a quick check, it appears the underscore problem exists for text objects 
as well. Do you see the same behavior?

If I leave the TeX interpreter on, then this works for me

plot (x, sin(x), x, cos(x))
legend ("test\\_1", "test\\_2")

Ben

p.s. Andy, I just indicated that this didn't work, but I was in error.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]