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

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

[Octave-bug-tracker] [bug #59648] hgsave (and then load with hgload) mak


From: Alan
Subject: [Octave-bug-tracker] [bug #59648] hgsave (and then load with hgload) makes figure that does not zoom properly
Date: Sat, 12 Dec 2020 10:13:02 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Follow-up Comment #2, bug #59648 (project octave):

I looked at hgsave, and it is mostly a pass-through to the function save. I
changed my test code to the following:


close all;
clear all;

x=0:.1:20;
y=sin(x);
h1=figure(1);plot(x,y);
title('y=sin(x)');
xlabel('x');
ylabel('y');

saveFileName='testSave1.ofig';
%hgsave(h1,saveFileName);% This line is replaced with next 5
fmt = "-binary"
for i = 1:numel (h1)
  s_oct40(i) = hdl2struct (h1(i));
endfor
save (fmt, saveFileName, "s_oct40");

hgload(saveFileName);


This still produces the same behavior. I looked at the function hgload, and
that is more complex. Based on this and the comment from Rik <rik5>, I am
thinking that the problem might in hgload.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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