#1172 Bug: y_min should not equal y_max!

closed-invalid
nobody
2D plot (258)
5
2012-10-24
2012-09-24
coatix
No

The message: "y_min should not equal y_max!" appears when plotting binary data included in the gnuplot file (plot '-').
To reproduce the bug, use the attached plot file, zoom on any portion of the graph and then zoom out (using 'p').
One can then zoom in but zooming out is not possible anymore.
I tried with gnuplot 4.6 (gp460win32.zip) and a binary version of gnuplot 4.7 (september 16) on windows 7 64bits
Hope it helps !

Discussion

  • coatix
    coatix
    2012-09-24

     
    Attachments
  • Ethan Merritt
    Ethan Merritt
    2012-10-14

    To help see what is happening, you can execute "set table" before your test script. It is then evident that gnuplot reads every point in the second plot as zero (or undefined; I don't think the set table output distinguishes between 0 and NaN). Since only the second plot uses the y1 axis, it is understandable that auto-scaling on that axis doesn't work.

    If you use the same axes for all 3 plots then autoscale/zoom works fine, although of course you don't see anything useful for the 2nd plot.

    Since I don't know what you were trying to do in this plot, I can't say where exactly there might be a bug. Were the 2nd plot values not intended to be zero? Were you expecting autoscaling on y2 to work even though y1 is undefined? What sort of plot would you expect to see?

     
  • Ethan Merritt
    Ethan Merritt
    2012-10-24

    • status: open --> closed-invalid