bugGNU Octave - Bugs: bug #35142, plotyy / polar demo failure

 
 

bug #35142: plotyy / polar demo failure

Submitter:  marco atzeri <matzeri>
Submitted:  Wed 21 Dec 2011 10:49:49 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Dec 2011 12:16:46 AM UTC, comment #1: 

Each demo should ensure that prior graphics object don't interfere.

I've pushed a changeset to add clf() to the demos for polar.m

http://hg.savannah.gnu.org/hgweb/octave/rev/9c1f630dc03d

I'm closing this, but feel free to reopen if needed.

Ben Abbott <bpabbott>
Group Member
Wed 21 Dec 2011 10:49:49 AM UTC, original submission:  

continuing the test of demos on latest dev, I noticed
that plotyy cause the next demo to fail:

------------------------------------------------------
octave:14> demo /pub/hg/octave/scripts/plot/plotyy.m
octave:15> demo /pub/hg/octave/scripts/plot/polar.m
/pub/hg/octave/scripts/plot/polar.m example 1:
 theta = linspace (0, 2*pi, 1000);
 rho = sin (7*theta);
 polar (theta, rho);

error: invalid conversion from real matrix to real scalar
error: _calc_dimensions_: expecting graphics handle as only argument
error: called from:
error:   /usr/local/share/octave/3.5.90+/m/plot/private/__go_draw_axes__.m at line 55, column 8
error:   /usr/local/share/octave/3.5.90+/m/plot/private/__go_draw_figure__.m at line 167, column 19
error:   /usr/local/share/octave/3.5.90+/m/plot/__gnuplot_drawnow__.m at line 86, column 5
error: input: reading user-input failed!
error:   /usr/local/share/octave/3.5.90+/m/testfun/demo.m at line 119, column 7
----------------------------------------------------

while adding clf
--------------------------------------------------
octave:16> demo /pub/hg/octave/scripts/plot/plotyy.m
octave:17> clf
octave:18> demo /pub/hg/octave/scripts/plot/polar.m
--------------------------------------------------
works fine.

Not clear if it is a more general  plotyy side effect,
or should be better to add a clf in rundemos just to
stay on safe side

marco atzeri <matzeri>

 

(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 bpabbott (Posted a comment)
  • -email is unavailable- added by matzeri (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
    2011-12-22 bpabbott StatusNone Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code