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

 
 

bug #35142: plotyy / polar demo failure

Submitted by:  marco atzeri <matzeri>
Submitted on:  Wed 21 Dec 2011 10:49:49 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Open/Closed: Closed
Release: devOperating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project MemberIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by matzeri (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 Dec 2011 12:16:46 AM UTCbpabbottStatusNone=>Fixed
      Assigned toNone=>bpabbott
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1