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

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

[Octave-bug-tracker] [bug #44670] hgload can't open Matlab figures


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #44670] hgload can't open Matlab figures
Date: Tue, 26 Jul 2016 07:51:34 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #6, bug #44670 (project octave):

Hi Guillaume,

I attached the modified hdl2struct/struct2hdl.m. Unfortunately I had started
from old versions (hg id: e766f7f86c68) and didn't have time to rebase and
ensure I did not reintroduce some fixed bug.

We those functions:
* the format of figure structures is modified to be ML compatible: this
probably means we should have two versions of each, one for reading/writing
the old format, one for the new. For example the old version could be renamed
__hdl2struct40__.m, the new __hdl2struct44__.m and then hdl2struct.m would be
a wrapper around those.
* support for ui* objects has been enabled
* the simplest Matlab figures (plot, loglog, bar) can be open in Octave. Even
though legends and colorbars are displayed correctly, like with Octave
figures, they actually behave has independent axes (not very useful).
* copyobj is 30% faster in some cases.

Testing against ML figure is as simple as:


s = load ("mlfigs.fig");
h = struct2hdl (s.hgS_070000, 0);


(file #38024, file #38025)
    _______________________________________________________

Additional Item Attachment:

File name: hdl2struct.m                   Size:3 KB
File name: struct2hdl.m                   Size:24 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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