If you call ImPlot::BeginPlot("foo", ImVec2(-1, 1000)) to get a PlotBarsHG with more vertical size than normal, the y-axis tick marks appear at the correct locations, but the bars no longer rendered centered on them. See attached screenshot.
The callback for PlotBarsHG always takes the index passed into it and uses it for the X value, so the bar should always be centered exactly on the tick mark.
If you call
ImPlot::BeginPlot("foo", ImVec2(-1, 1000))
to get aPlotBarsHG
with more vertical size than normal, the y-axis tick marks appear at the correct locations, but the bars no longer rendered centered on them. See attached screenshot.The callback for
PlotBarsHG
always takes the index passed into it and uses it for the X value, so the bar should always be centered exactly on the tick mark.