mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
fix axis constraints
This commit is contained in:
parent
d14dd621e4
commit
2b46c3eac3
|
@ -1145,6 +1145,12 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons
|
|||
gp.Scales[i] = ImPlotScale_LogLog;
|
||||
}
|
||||
|
||||
// constraints
|
||||
plot.XAxis.Constrain();
|
||||
for (int i = 0; i < IMPLOT_Y_AXES; ++i)
|
||||
plot.YAxis[i].Constrain();
|
||||
|
||||
|
||||
// AXIS COLORS -----------------------------------------------------------------
|
||||
|
||||
UpdateAxisColors(ImPlotCol_XAxis, &gp.Col_X);
|
||||
|
|
Loading…
Reference in New Issue
Block a user