bugGNU Octave - Bugs: bug #64606, hgload might not load or display...

 
 

bug #64606: hgload might not load or display with three examples.

Submitter:  Liang Tang <lt1234>
Submitted:  Mon 28 Aug 2023 07:52:03 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Aug 2023 08:30:11 PM UTC, comment #1: 

I would like to add another case using case 3. The jpeg is a blank axes, no uitable, or an error message.  Thanks. 


fid=figure('name', 'uitable reload failed');

uit=uitable (fid, 'units', 'normalized', 'Position', [ 0.6 0.25 0.3 0.5  ], ...  
'Data', zeros(4,3), ...
'RowName', {'1' '2' '3' '4'}, ...  
'ColumnName', {'x', 'y', 'z'}, ...   
'rearrangeablecolumns', 'on',  ...   
'tooltipstring', 'data',  ...
'ColumnFormat', {'bank' 'bank' 'bank'  }, ...
'ColumnWidth',{ 100 100 100 } , ...  
'tag', 'table');
  
%axs = axes ('position', [0.05 0.25 0.5 0.5], 'tag', 'plot', 'NextPlot', 'add');
%tt=0:0.1:10; plot(tt, sin(tt),'b'); legend('A Box',  'box', 'off')

saveas(gca, 'test3j.jpg', 'jpg')  % blank axes
saveas(gcf, 'test3j.jpg', 'jpg')  % error below
%{
error: print: no axes object in figure to print
error: called from
    print at line 467 column 5
    saveas at line 150 column 5

%}





Liang Tang <lt1234>
Mon 28 Aug 2023 07:52:03 PM UTC, original submission:  

I have three items in this report.  All related to hgload.  All figures were shown correctly when they were plotted.  What displayed after hgload were different. 

(1) legend is missing
(2) half of the legend box shown, when box is off
(3) A uitable would not load

Thanks,

fid=figure('name', 'Legend disappears');

% legend disappears
  
axs = axes ('position', [0.05 0.25 0.5 0.5], 'tag', 'plot', 'NextPlot', 'add');
tt=0:0.1:10; plot(tt, sin(tt),'b'); legend('A Box',  'box', 'off')

saveas(fid, 'test1.ofig', 'ofig')
hgload('test1.ofig');

fid=figure('name', 'Legend 1/2 box shown');

% legend 1/2 box appear
  
%axs = axes ('position', [0.05 0.25 0.5 0.5], 'tag', 'plot', 'NextPlot', 'add');
tt=0:0.1:10; plot(tt, sin(tt),'b'); legend('A Box',  'box', 'off')

saveas(fid, 'test2.ofig', 'ofig')
hgload('test2.ofig');

fid=figure('name', 'uitable reload failed');

uit=uitable (fid, 'units', 'normalized', 'Position', [ 0.6 0.25 0.3 0.5  ], ...  
'Data', zeros(4,3), ...
'RowName', {'1' '2' '3' '4'}, ...  
'ColumnName', {'x', 'y', 'z'}, ...   
'rearrangeablecolumns', 'on',  ...   
'tooltipstring', 'data',  ...
'ColumnFormat', {'bank' 'bank' 'bank'  }, ...
'ColumnWidth',{ 100 100 100 } , ...  
'tag', 'table');
  
%axs = axes ('position', [0.05 0.25 0.5 0.5], 'tag', 'plot', 'NextPlot', 'add');
%tt=0:0.1:10; plot(tt, sin(tt),'b'); legend('A Box',  'box', 'off')

saveas(fid, 'test3.ofig', 'ofig')
hgload('test3.ofig');
%{
error: invalid value for array property "columneditable"
error: called from
    struct2hdl>setprops at line 700 column 10
    struct2hdl at line 231 column 3
    struct2hdl at line 225 column 15
    hgload at line 105 column 10
%}

Liang Tang <lt1234>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #55095:  test3j.jpg added by lt1234 (9KiB - image/jpeg)
file #55091:  hgload_bug.m added by lt1234 (1KiB - application/octet-stream)
file #55092:  test1.ofig added by lt1234 (44KiB - application/octet-stream)
file #55093:  test2.ofig added by lt1234 (68KiB - application/octet-stream)
file #55094:  test3.ofig added by lt1234 (25KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-28 lt1234 Attached File- Added test3j.jpg, #55095
    2023-08-28 lt1234 Attached File- Added hgload_bug.m, #55091
        Attached File- Added test1.ofig, #55092
        Attached File- Added test2.ofig, #55093
        Attached File- Added test3.ofig, #55094

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code