octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #40064] Legend "interpreter" property not work


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #40064] Legend "interpreter" property not working correctly
Date: Sat, 31 May 2014 15:13:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 Safari/537.36

Follow-up Comment #33, bug #40064 (project octave):

Glenn, here is my take on this bug.

I am not sure that there is any Matlab incompatibility right now. Making a
change to allow the default interpreter property for legend to inherit from
some other object type might actually introduce an incompatibility, so that
would be undesirable unless there is a very strong reason to do so.

Here is an example from the Matlab help for legend
(http://www.mathworks.com/help/matlab/ref/legend.html) that works perfectly in
Octave:


figure
x = -pi:pi/20:pi;
plot(x,cos(x),'-ro',x,sin(x),'-.b')
hleg1 = legend('cos_x','sin_x');
set(hleg1,'Location','NorthWest')
set(hleg1,'Interpreter','none')


And moreover, the following excerpt from the same legend help page:

> The properties that legends do not share with axes are
> * Location
> * Orientation
> * EdgeColor
> * TextColor
> * Interpreter
> * String

So they explicitly say that the interpreter property is *not* inherited from
the default axes property set. Making it do so would introduce unexpected
incompatibility.

It may yet be a bug that the legend interpreter does inherit from something
else, when in fact it may be that it should inherit from nothing and there
simply should be no way to set the default (until Matlab decides that there
is, of course).

And it may be a bug that it reports back "tex" when getting the property after
setting it to "none". I do not have access to Matlab to test that at the
moment.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40064>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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