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: Guillaume
Subject: [Octave-bug-tracker] [bug #44670] hgload can't open Matlab figures
Date: Mon, 5 Nov 2018 06:48:37 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

Concerning my comment about uicontextmenu, I attach the fig file created with
Matlab for the following figure:


h = figure;
u1 = uicontrol('parent', h, 'units', 'normalized', 'position', [0.3 0.1 0.4
0.2], 'style', 'listbox', 'string', 'listbox');
u2 = uicontrol('parent', h, 'units', 'normalized', 'position', [0.3 0.4 0.4
0.2], 'style', 'listbox', 'string', 'listbox');
u3 = uicontrol('parent', h, 'units', 'normalized', 'position', [0.3 0.7 0.4
0.2], 'style', 'listbox', 'string', 'listbox');

c = uicontextmenu;
uimenu(c, 'label', 'A');
uimenu(c, 'label', 'B');
uimenu(c, 'label', 'C');

set(u1, 'uicontextmenu', c);
set(u3, 'uicontextmenu', c);

savefig (h, 'testfig.fig');


The "special" field of the uicontextmenu contains the list of handles it
applies to:


octave> load testfig.fig -mat
octave> hgS_070000.children(4).special # uicontextmenu
                ans =
                    9.0054
                   11.0054

octave> hgS_070000.children([1, 3]).handle # uicontrol
                ans =  9.0054
                ans =  11.005


(file #45362)
    _______________________________________________________

Additional Item Attachment:

File name: testfig.fig                    Size:4 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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