mirror of
https://github.com/gwm17/implot.git
synced 2024-11-13 22:48:50 -05:00
make time override log
This commit is contained in:
parent
c70eee5701
commit
fe552f25f0
|
@ -919,7 +919,7 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons
|
|||
if (gp.RenderX && gp.NextPlotData.ShowDefaultTicksX) {
|
||||
if (gp.X.IsTime)
|
||||
AddTicksTime(plot.XAxis.Range, plot_width, gp.XTicks);
|
||||
if (ImHasFlag(plot.XAxis.Flags, ImPlotAxisFlags_LogScale))
|
||||
else if (ImHasFlag(plot.XAxis.Flags, ImPlotAxisFlags_LogScale))
|
||||
AddTicksLogarithmic(plot.XAxis.Range, (int)IM_ROUND(plot_width * 0.01f), gp.XTicks);
|
||||
else
|
||||
AddTicksDefault(plot.XAxis.Range, ImMax(2, (int)IM_ROUND(0.0025 * plot_width)), IMPLOT_SUB_DIV, gp.XTicks);
|
||||
|
|
Loading…
Reference in New Issue
Block a user