epezent / implot

Immediate Mode Plotting
MIT License
4.55k stars 503 forks source link

PlotDigital visualization problem when you zoom x axis or few samples #492

Closed ozlb closed 11 months ago

ozlb commented 1 year ago

When sample points are outside plot area, x values are saturated to plot at least one rectangle; the problem is that ImRect::Contains the upper-left corners are checked with >= and the lower-right are checked with <, so in order to include there must be at least 1 pixel difference https://github.com/ocornut/imgui/issues/3976