bugGNU Octave - Bugs: bug #40437, calling plotyy corrupts the...

 
 

bug #40437: calling plotyy corrupts the graphics system

Submitter:  None
Submitted:  Thu 31 Oct 2013 08:23:25 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Lynn Ten Eyck Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 01 Nov 2013 08:44:56 AM UTC, comment #1: 

I can confirm this on MinGW (Windows) Octave 3.6.4 but only with gnuplot.
And yes I can even confirm that on an old MinGW Octave 3.2.4 it all works fine. So it looks like platform (OSX, Windows, Linux) doesn't play a role here.

After issuing:
graphics_toolkit fltk
in Octave 3.6.4 this bug doesn't happen; while I do see that the right Y-axis is missing after the second call to bar().

The good news:
With a very recent 3.7.7+ build your command sequence works fine even with gnuplot, both on Windows (MinGW) and on Linux (Mageia-2).

So, it looks like this has been fixed in the development sources.

Thanks for reporting anyway.

Changing OS to "any", & closing with "works for me" (as I don't have OSX) - it can always be reopened.

Philip Nienhuis <philipnienhuis>
Group Member
Thu 31 Oct 2013 08:23:25 PM UTC, original submission:  

The following code sequence

bar ( [0:10], rand(11,2) )
plotyy ( [0,1], [1,0], [0,1], [0,1] )
bar ( [0:10], rand(11,2) )

produces an error condition and leaves the plotting system in a seriously damaged state.

The first call to "bar" demonstrates the system worked properly.
"plotyy" also produces a correct plot.
Further attempts to use "bar" fail with the following error messages:


octave:1> bar( [0:10], rand(11,2))
octave:2> plotyy ( [0,1], [1,0], [0,1], [0,1])
octave:3> bar( [0:10], rand(11,2))
error: invalid conversion from real matrix to real scalar
error: __calc_dimensions__: expecting graphics handle as only argument
error: called from:
error:   /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/plot/private/__go_draw_axes__.m at line 55, column 8
error:   /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/plot/private/__go_draw_figure__.m at line 167, column 19
error:   /usr/local/Cellar/octave/3.6.4/share/octave/3.6.4/m/plot/__gnuplot_drawnow__.m at line 86, column 5


This error occurs on version 3.6.4 and Mac OSX 10.8.5, compiled with Homebrew,
and also occurs on Ubuntu 12.04 LTS, downloaded from the gnu/octave site and compiled with ./configure; make.

The error does NOT occur on octave 3.2 as distributed by the Ubuntu package manager.

Anonymous

 

(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 None (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
    2013-11-01 philipnienhuis StatusNone Works For Me
        Open/ClosedOpen Closed
        Operating SystemMac OS Any

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code