Description:
Tweak formatting.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -90,8 +90,13 | |||||
|
90 | } |
|
90 | } |
|
91 | } |
|
91 | } |
|
92 |
|
92 | ||
|
|
93 | ImPlot.PushStyleVar(ImPlotStyleVar.LineWeight, 2.0f); | ||
|
|
94 | ImPlot.PushStyleVar(ImPlotStyleVar.MinorAlpha, 0.0f); | ||
|
|
95 | // ImPlot.PushStyleVar(ImPlotStyleVar.MajorGridSize, new Num.Vector2(0.0f, 0.0f)); | ||
|
|
96 | // ImPlot.PushStyleVar(ImPlotStyleVar.MinorGridSize, new Num.Vector2(0.0f, 0.0f)); | ||
|
|
97 | |||
|
93 | ImPlot.SetNextPlotLimits(totals.Count()-periods, totals.Count(), min, max , ImGuiCond.Always); |
|
98 | ImPlot.SetNextPlotLimits(totals.Count()-periods, totals.Count(), min, max , ImGuiCond.Always); |
|
94 | if( ImPlot.BeginPlot("My Plot")) { |
|
99 | if( ImPlot.BeginPlot("My Plot", null, null, new Num.Vector2(-1,0), ImPlotFlags.NoLegend | ImPlotFlags.NoMousePos )) { |
|
95 | // Span<double> totals = new Span<double>(new double[]{0.0, 1.0, 2.0, 9.0}); |
|
100 | // Span<double> totals = new Span<double>(new double[]{0.0, 1.0, 2.0, 9.0}); |
|
96 | foreach (var key in keys) { |
|
101 | foreach (var key in keys) { |
|
97 | var show = data_sets_show[key]; |
|
102 | var show = data_sets_show[key]; |
@@ -106,6 +111,8 | |||||
|
106 | ImPlot.EndPlot(); |
|
111 | ImPlot.EndPlot(); |
|
107 | } |
|
112 | } |
|
108 |
|
113 | ||
|
|
114 | ImPlot.PopStyleVar(2); | ||
|
|
115 | |||
|
109 | ImGui.RadioButton("1 year", ref GraphWindow.year, 1); |
|
116 | ImGui.RadioButton("1 year", ref GraphWindow.year, 1); |
|
110 | ImGui.SameLine(); |
|
117 | ImGui.SameLine(); |
|
111 | ImGui.RadioButton("5 years", ref GraphWindow.year, 5); |
|
118 | ImGui.RadioButton("5 years", ref GraphWindow.year, 5); |
You need to be logged in to leave comments.
Login now