octave-maintainers
[Top][All Lists]
Advanced

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

Re: Final call for bug reports


From: Daniel J Sebald
Subject: Re: Final call for bug reports
Date: Thu, 17 Oct 2013 00:36:53 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 10/16/2013 02:52 PM, Rik wrote:
On 10/16/2013 10:00 AM, address@hidden wrote:
7) In the list of children associated with a figure, I'm trying to
determine which is an axes and which is a legend.  Try the following
commands:

figure(10)
x = [1:50]
h = plot(x)
legend(h, 'this is x');
kids = get(gcf, 'Children')
get(kids(1))
[snip]
      tag = legend
      type = axes
[snip]
get(kids(2))
[snip]
      tag =
      type = axes
[snip]

It's as though the "tag" for the legend actually should be the "type"
variable value.  There shouldn't be a tag there unless the user
specifies one.  This may have been introduced somewhere around the
following changeset:
http://hg.savannah.gnu.org/hgweb/octave/rev/d99785217634
Blame The MathWorks.  Legends are implemented as an additional axes on the
figure with the tag set to "legend".  This is the compatible behavior.

That's really strange. There is a completely different set of parameters/elements for a legend object and an axes object, yet they are both considered "axes" type?

Dan


reply via email to

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