Turn off TeX for legend labels

Ben Abbott bpabbott at mac.com
Wed Apr 15 08:41:29 CDT 2009


On Wednesday, April 15, 2009, at 08:01AM, "andy buckle" <andybuckle at gmail.com> wrote:
>
>
>Ben Abbott wrote:
>> 
>> Perhaps I'm confused. What objects do you expect this to impact?
>> 
>
>I am just trying stuff, to try and make it work. 
>
>Let's say we have a plot with 3 curves on. you might want different settings
>for the legend labels for each curve. Indeed
>
>octave> get(get(gca,"children")(1))
>
>shows you that the 'keylabel' and 'interpreter' for the legend are accessed
>via the plot handle.

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")

>perhaps there is alternative workaround. Is there something like the HTML
><pre> in TeX?

I'm unfamiliar with HTML.

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") 

Ben


More information about the Help-octave mailing list