From 663738452feb4034a4a474a7886487d7952351dd Mon Sep 17 00:00:00 2001 From: Evan Pezent Date: Tue, 2 Jun 2020 12:35:20 -0500 Subject: [PATCH] colormaps --- implot_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot_demo.cpp b/implot_demo.cpp index 671c360..68707c1 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -341,7 +341,7 @@ void ShowDemoWindow(bool* p_open) { ImGui::LabelText("##Colormap Index", cmap_names[map]); ImGui::DragFloatRange2("Scale (Left Only)",&scale_min,&scale_max,0.01f); static ImPlotAxisFlags axes_flags = ImPlotAxisFlags_LockMin | ImPlotAxisFlags_LockMax; - if (ImPlot::BeginPlot("##Heatmap1",NULL,NULL,ImVec2(250,250),0,axes_flags,axes_flags)) { + if (ImPlot::BeginPlot("##Heatmap1",NULL,NULL,ImVec2(250,250))) { ImPlot::SetColormap(map); ImPlot::PlotHeatmap("heat",values1[0],7,7,scale_min,scale_max); ImPlot::EndPlot();