summaryrefslogtreecommitdiff
path: root/grapher/Models/Charts
diff options
context:
space:
mode:
authorJacobPalecki <[email protected]>2020-09-27 20:54:57 -0700
committerGitHub <[email protected]>2020-09-27 20:54:57 -0700
commit5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b (patch)
treef1c73a42b369f362a40ea251281d98ee02bf0a98 /grapher/Models/Charts
parentMerge pull request #25 from JacobPalecki/GUI (diff)
parentadd arg checks in wrapper (diff)
downloadrawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.tar.xz
rawaccel-5f3ea6699f4b1a7eec7f9f0cd51ad9afbc1dea4b.zip
Merge pull request #26 from a1xd/argcheck
Accel arg checks
Diffstat (limited to 'grapher/Models/Charts')
-rw-r--r--grapher/Models/Charts/ChartState/CombinedState.cs4
-rw-r--r--grapher/Models/Charts/ChartState/XYTwoGraphState.cs4
-rw-r--r--grapher/Models/Charts/ChartXY.cs5
3 files changed, 13 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/CombinedState.cs b/grapher/Models/Charts/ChartState/CombinedState.cs
index f4b6b8f..802c392 100644
--- a/grapher/Models/Charts/ChartState/CombinedState.cs
+++ b/grapher/Models/Charts/ChartState/CombinedState.cs
@@ -24,6 +24,10 @@ namespace grapher.Models.Charts.ChartState
SensitivityChart.SetCombined();
VelocityChart.SetCombined();
GainChart.SetCombined();
+
+ SensitivityChart.ClearSecondDots();
+ VelocityChart.ClearSecondDots();
+ GainChart.ClearSecondDots();
}
public override void MakeDots(int x, int y, double timeInMs)
diff --git a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
index b775853..017d3d1 100644
--- a/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
+++ b/grapher/Models/Charts/ChartState/XYTwoGraphState.cs
@@ -45,6 +45,10 @@ namespace grapher.Models.Charts.ChartState
SensitivityChart.SetSeparate();
VelocityChart.SetSeparate();
GainChart.SetSeparate();
+
+ SensitivityChart.ClearSecondDots();
+ VelocityChart.ClearSecondDots();
+ GainChart.ClearSecondDots();
}
public override void MakeDots(int x, int y, double timeInMs)
diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs
index d95c7ac..27b63b5 100644
--- a/grapher/Models/Charts/ChartXY.cs
+++ b/grapher/Models/Charts/ChartXY.cs
@@ -154,6 +154,11 @@ namespace grapher
*/
}
+ public void ClearSecondDots()
+ {
+ ChartX.Series[3].Points.Clear();
+ }
+
public void Update()
{
ChartX.Update();