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

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

[Octave-bug-tracker] [bug #37290] gnuplot / demo plotyy followed by somb


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #37290] gnuplot / demo plotyy followed by sombrero errors out
Date: Thu, 06 Sep 2012 20:35:18 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

URL:
  <http://savannah.gnu.org/bugs/?37290>

                 Summary: gnuplot / demo plotyy  followed by sombrero errors
out
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Thu Sep  6 22:35:17 2012
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.3
        Operating System: Any

    _______________________________________________________

Details:

Reproducible on Mandriva 2010.2,, Mageia 2 and Windows (MinGW, MSVC).
Also errors on Octave-3.6.2_MSVC/MinGW & Octave-3.6.1_MSVC

Works OK on MinGW Octave 3.4.3.

So somewhere in between 3.6.1 and 3.4.3 a regression happened.


octave:1> graphics_toolkit gnuplot
octave:2> demo plotyy
plotyy example 1:
 clf
 x = 0:0.1:2*pi;
 y1 = sin (x);
 y2 = exp (x - 1);
 ax = plotyy (x, y1, x - 1, y2, @plot, @semilogy);
 xlabel ("X");
 ylabel (ax(1), "Axis 1");
 ylabel (ax(2), "Axis 2");
 axes (ax(1))
 text (0.5, 0.5, "Left Axis", ...
       "color", [0 0 1], "horizontalalignment", "center")
 axes (ax(2))
 text (4.5, 80, "Right Axis", ...
       "color", [0 0.5 0], "horizontalalignment", "center")

Press <enter> to continue: 
plotyy example 2:
 clf
 x = linspace (-1, 1, 201);                                                   
                                
 subplot (2, 2, 1)                                                            
                                
 plotyy (x, sin(pi*x), x, 10*cos(pi*x))                                       
                                
 subplot (2, 2, 2)                                                            
                                
 surf (peaks (25))                                                            
                                
 subplot (2, 2, 3)                                                            
                                
 contour (peaks (25))
 subplot (2, 2, 4)
 plotyy (x, 10*sin(2*pi*x), x, cos(2*pi*x))
 axis square

Press <enter> to continue: 
plotyy example 3:
 clf
 x = linspace (-1, 1, 201);
 subplot (1, 1, 1);
 hax = plotyy (x, sin(pi*x), x, cos(pi*x));
 ylabel ("Blue and on the Left")
 ylabel (hax(2), "Green and on the Right")
 xlabel ("xlabel")

octave:3> sombrero
error: invalid conversion from real matrix to real scalar
error: __calc_dimensions__: expecting graphics handle as only argument
error: called from:
error:  
/home/philip/devel/oct363/../octave-3.6.3/scripts/plot/private/__go_draw_axes__.m
at line 55, column 8
error:  
/home/philip/devel/oct363/../octave-3.6.3/scripts/plot/private/__go_draw_figure__.m
at line 167, column 19
error:  
/home/philip/devel/oct363/../octave-3.6.3/scripts/plot/__gnuplot_drawnow__.m
at line 86, column 5
octave:4> 


With a "close" in between (before "sombrero") all goes well; fltk isn't
affected either.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37290>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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