bugGNU Octave - Bugs: bug #60488, cannot hgload plotyy figure

 
 

bug #60488: cannot hgload plotyy figure

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Fri 30 Apr 2021 06:50:02 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 02 May 2021 02:29:32 PM UTC, comment #1: 

Confirmed.  There was a small logic flaw in the code.  I fixed that here (http://hg.savannah.gnu.org/hgweb/octave/rev/0023c109e1b0).

Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Fri 30 Apr 2021 06:50:02 PM UTC, original submission:  

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.
--

Dmitri A. Sergatskov <dasergatskov>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-05-02 rik5 Item GroupNone Unexpected Error or Warning
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code