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

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

[Octave-bug-tracker] [bug #60488] cannot hgload plotyy figure


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #60488] cannot hgload plotyy figure
Date: Fri, 30 Apr 2021 14:50:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60488>

                 Summary: cannot hgload plotyy figure
                 Project: GNU Octave
            Submitted by: dasergatskov
            Submitted on: Fri 30 Apr 2021 06:50:02 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

I cannot load plotyy figure.

Create a figure and hgsave it:



h1 = figure ()
x = 0:0.1:2*pi;
y1 = sin (x);
y2 = exp (x - 1);
plotyy (x,y1, x-1,y2);
hgsave(h1, "ftmp.ofig");



Now restart octave and try to hgload it back:



octave:1> h2 = hgload("ftmp.ofig") 
error: =: nonconformant arguments (op1 is 1x1, op2 is 2x1)
error: called from
    struct2hdl>createaxes at line 260 column 20
    struct2hdl at line 166 column 12
    struct2hdl at line 206 column 15
    hgload at line 105 column 10
octave:2> 



It works if I create figure() first:



octave:1> figure()
octave:2> h2 = hgload("ftmp.ofig") 
h2 = 2



Dmitri.
-- 





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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