# HG changeset patch # User Alys Brooks # Date 2022-01-08 20:43:51 # Node ID 5a00ac61d329682f57d11f1aba88c2cb76ac1dc3 # Parent 936237b8677ac22efc8949adad7418f1e3b4e534 Tweak formatting. diff --git a/isometric-park-fna/UI/Graph.cs b/isometric-park-fna/UI/Graph.cs --- a/isometric-park-fna/UI/Graph.cs +++ b/isometric-park-fna/UI/Graph.cs @@ -90,8 +90,13 @@ } } + ImPlot.PushStyleVar(ImPlotStyleVar.LineWeight, 2.0f); + ImPlot.PushStyleVar(ImPlotStyleVar.MinorAlpha, 0.0f); + // ImPlot.PushStyleVar(ImPlotStyleVar.MajorGridSize, new Num.Vector2(0.0f, 0.0f)); + // ImPlot.PushStyleVar(ImPlotStyleVar.MinorGridSize, new Num.Vector2(0.0f, 0.0f)); + ImPlot.SetNextPlotLimits(totals.Count()-periods, totals.Count(), min, max , ImGuiCond.Always); - if( ImPlot.BeginPlot("My Plot")) { + if( ImPlot.BeginPlot("My Plot", null, null, new Num.Vector2(-1,0), ImPlotFlags.NoLegend | ImPlotFlags.NoMousePos )) { // Span totals = new Span(new double[]{0.0, 1.0, 2.0, 9.0}); foreach (var key in keys) { var show = data_sets_show[key]; @@ -106,6 +111,8 @@ ImPlot.EndPlot(); } + ImPlot.PopStyleVar(2); + ImGui.RadioButton("1 year", ref GraphWindow.year, 1); ImGui.SameLine(); ImGui.RadioButton("5 years", ref GraphWindow.year, 5);