Menu

[PHPlot 6.1] Y range error - min >= max

Nemo
2014-03-24
2014-03-24
  • Nemo

    Nemo - 2014-03-24

    What changed in 6.1 that could cause this and what to do?
    https://bugzilla.wikimedia.org/show_bug.cgi?id=63013

     
  • lbayuk

    lbayuk - 2014-03-24

    Hi, the actual change was in phplot-6.0 not 6.1:


    SetPlotAreaWorld() now validates arguments

    Starting with PHPlot-6.0.0, the SetPlotAreaWorld() function checks non-NULL
    arguments for validity. For both X and Y, it is required that min < max if
    both are specified. If you have a script that calls SetPlotAreaWorld() with
    max <= min for either X or Y, that script will now fail.


    So you need to check your Ymin and Ymax arguments to SetPlotAreaWorld(Xmin, Ymin, Xmax, Ymax) and make sure Ymin < Ymax if both are provided. Before 6.0 it didn't check, but the results were unpredicable because the range must be positive.

    I don't know wikimedia, but if there is anything I can do to help let me know.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.