Menu ▾ ▴

#838 Fix lines outside of graph bounds with bounded autoscaling

Version 6
closed-accepted
nobody
None
5
2 days ago
2 days ago
Ahnolds
No

Fix for https://sourceforge.net/p/gnuplot/bugs/2905/

Found the issue using claude. When autoscaling starts, min is initialized to VERYLARGE. The first data point is then guaranteed to be set as the min value. However, if it's above the maximum allowable upper bound, so the max is clamped appropriately. This temporarily results in min > max, but the points are still considered as INRANGE, so they are drawn. When eventually a data point that is actually in the intended range is found, min is updated so that it's sane (less than max), and the final axis is drawn correctly.

Patch generated accordingly, passes locally

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2 days ago
    • status: open --> closed-accepted
     
  • Ethan Merritt

    Ethan Merritt - 2 days ago

    Applied. Thanks.

     

Log in to post a comment.