mirror of
https://github.com/gwm17/implot.git
synced 2024-11-13 22:48:50 -05:00
fix addtickstime definition and heatmap labels
This commit is contained in:
parent
95eb2ea78d
commit
24b543839b
|
@ -802,7 +802,7 @@ IMPLOT_API void AddTicksDefault(const ImPlotRange& range, int nMajor, int nMinor
|
|||
// Populates a list of ImPlotTicks with logarithmic space and formatted ticks
|
||||
IMPLOT_API void AddTicksLogarithmic(const ImPlotRange& range, int nMajor, ImPlotTickCollection& ticks);
|
||||
// Populates a list of ImPlotTicks with time formatted ticks.
|
||||
IMPLOT_API void AddTicksTime(const ImPlotRange& range, int nMajor, ImPlotTickCollection& ticks);
|
||||
IMPLOT_API void AddTicksTime(const ImPlotRange& range, float plot_width, ImPlotTickCollection& ticks);
|
||||
// Populates a list of ImPlotTicks with custom spaced and labeled ticks
|
||||
IMPLOT_API void AddTicksCustom(const double* values, const char* const labels[], int n, ImPlotTickCollection& ticks);
|
||||
|
||||
|
|
|
@ -1684,7 +1684,7 @@ void RenderHeatmap(Transformer transformer, ImDrawList& DrawList, const T* value
|
|||
for (int c = 0; c < cols; ++c) {
|
||||
ImPlotPoint p;
|
||||
p.x = bounds_min.x + 0.5*w + c*w;
|
||||
p.y = bounds_min.y + 1 - (0.5*h + r*h);
|
||||
p.y = bounds_max.y - (0.5*h + r*h);
|
||||
ImVec2 px = transformer(p);
|
||||
char buff[32];
|
||||
sprintf(buff, fmt, values[i]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user