You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed an issue where data points that match the exact maximum value set for the Y axis are not displayed in the plot. To address this, I've added a fixed offset to both the minimum and maximum values when calling ImPlot::SetupAxisLimits():
constexprdouble Offset = 0.5; // in order to draw values that exactly equal to min or maxImPlot::SetupAxisLimits(ImAxis_Y1, 0.0 - Offset, currentPlot.plotMaxValue + Offset, ImGuiCond_Always);
While that works most of the time(for small values like %), I've observed that the issue still persists sometimes, particularly when dealing with very high maximum values.
One way obvious is to switch from a fixed offset to a percentage-based offset instead. But I'm wondering whether this is the best solution.
Any advice would be appreciated!
Thanks,
Yiran
The text was updated successfully, but these errors were encountered:
I've noticed an issue where data points that match the exact maximum value set for the Y axis are not displayed in the plot. To address this, I've added a fixed offset to both the minimum and maximum values when calling ImPlot::SetupAxisLimits():
While that works most of the time(for small values like %), I've observed that the issue still persists sometimes, particularly when dealing with very high maximum values.
One way obvious is to switch from a fixed offset to a percentage-based offset instead. But I'm wondering whether this is the best solution.
Any advice would be appreciated!
Thanks,
Yiran
The text was updated successfully, but these errors were encountered: