Skip to content

Commit

Permalink
fix: set_axis_limits() not honored #1852
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Oct 17, 2022
1 parent caa79c4 commit 27bcb6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mvPlotting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ DearPyGui::draw_plot(ImDrawList* drawlist, mvAppItem& item, mvPlotConfig& config
auto axis = static_cast<mvPlotAxis*>(child.get());
if (axis->configData.setLimits || axis->configData._dirty)
{
switch (item.info.location)
switch (axis->info.location)
{
case(0): ImPlot::SetNextPlotLimitsX(axis->configData.limits.x, axis->configData.limits.y, ImGuiCond_Always); break;
case(1): ImPlot::SetNextPlotLimitsY(axis->configData.limits.x, axis->configData.limits.y, ImGuiCond_Always); break;
Expand Down

0 comments on commit 27bcb6b

Please # to comment.