mirror of
https://github.com/gwm17/implot.git
synced 2025-04-22 08:18:50 -04:00
meh
This commit is contained in:
parent
5f11a7875d
commit
72cf024347
|
@ -1899,11 +1899,11 @@ void RenderHeatmap(Transformer transformer, ImDrawList& DrawList, const T* value
|
||||||
ImPlotScale scale = GetCurrentScale();
|
ImPlotScale scale = GetCurrentScale();
|
||||||
|
|
||||||
// NOTE: Order is important!
|
// NOTE: Order is important!
|
||||||
Backend::RenderHeatmap(gp.CurrentItem->ID, DrawList, bmin, bmax, scale_min, scale_max, gp.Style.Colormap);
|
Backend::RenderHeatmap(gp.CurrentItem->ID, DrawList, bmin, bmax, (float)scale_min, (float)scale_max, gp.Style.Colormap);
|
||||||
Backend::SetAxisLog(gp.CurrentItem->ID,
|
Backend::SetAxisLog(gp.CurrentItem->ID,
|
||||||
scale == ImPlotScale_LogLin || scale == ImPlotScale_LogLog,
|
scale == ImPlotScale_LogLin || scale == ImPlotScale_LogLog,
|
||||||
scale == ImPlotScale_LinLog || scale == ImPlotScale_LogLog,
|
scale == ImPlotScale_LinLog || scale == ImPlotScale_LogLog,
|
||||||
ImVec2(bounds_min.x, bounds_min.y), ImVec2(bounds_max.x, bounds_max.y));
|
ImVec2((float)bounds_min.x, (float)bounds_min.y), ImVec2((float)bounds_max.x, (float)bounds_max.y));
|
||||||
Backend::SetHeatmapData(gp.CurrentItem->ID, values, rows, cols);
|
Backend::SetHeatmapData(gp.CurrentItem->ID, values, rows, cols);
|
||||||
#else
|
#else
|
||||||
GetterHeatmap<T> getter(values, rows, cols, scale_min, scale_max, (bounds_max.x - bounds_min.x) / cols, (bounds_max.y - bounds_min.y) / rows, bounds_min.x, yref, ydir);
|
GetterHeatmap<T> getter(values, rows, cols, scale_min, scale_max, (bounds_max.x - bounds_min.x) / cols, (bounds_max.y - bounds_min.y) / rows, bounds_min.x, yref, ydir);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user