[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60792] legend function returns too few object
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab |
Date: |
Thu, 17 Jun 2021 16:19:16 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #2, bug #60792 (project octave):
I just typed "help legend":
:
[LEGH,OBJH,OUTH,OUTM] = legend(...) returns a handle LEGH to the
legend axes; a vector OBJH containing handles for the text, lines,
and patches in the legend; a vector OUTH of handles to the
lines and patches in the plot; and a cell array OUTM containing
the text in the legend.
:
That said, I now see that r2020b says:
Returning multiple outputs is not recommended
Not recommended starting in R2014b
Returning multiple outputs using this syntax is no longer recommended:
[lgd,icons,plots,txt] = legend(__)
This syntax creates a legend that does not support some functionality
introduced in R2014b or later. For example, you cannot add a title to the
legend or specify the number of legend columns. Also, the legend does not
automatically update when you add or remove data series from the axes.
Instead, return the Legend object and set Legend Properties.
lgd = legend(__)
.. which is apparently related to their new object based graphics.
Well, Octave doesn't support that (yet?), so Matlab's suggested workaround
won't work in Octave.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60792>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Philip Nienhuis, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Pantxo Diribarne, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Philip Nienhuis, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Philip Nienhuis, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Pantxo Diribarne, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Philip Nienhuis, 2021/06/17
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Pantxo Diribarne, 2021/06/20
- [Octave-bug-tracker] [bug #60792] legend function returns too few objects in different order compared to Matlab, Philip Nienhuis, 2021/06/21