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

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

[Octave-bug-tracker] [bug #61352] matlab2tikz and legends


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61352] matlab2tikz and legends
Date: Tue, 19 Oct 2021 06:00:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50

Follow-up Comment #3, bug #61352 (project octave):

IIUC, the function `getLegendEntries` tries to gather handles to the objects
referenced in the legend. Is that correct?

By the looks of it, to do that, it is using some implementation details that
might have changed when `legend` was completely overhauled for Octave 6.x.

I'm not sure if there is a documented way to achieve that.

Using yet another implementation detail of `legend` in Octave 6.x, you could
probably use `entries = getappdata(legendHandle, "__peer_objects__")` as a
replacement.

If you'd like to continue supporting older versions of Octave, you could check
with `isappdata(legendHandle, "__peer_objects__")` and fall back to the
current implementation if that returns false.

But be aware that all these implementation details might change again in a
newer version without further notice.

HTH

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61352>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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