summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-27 00:53:19 -0700
committera1xd <[email protected]>2020-09-27 22:43:24 -0400
commit7f759719f816c2428d18bf53cc78e6b2402fb3f8 (patch)
treee50a6ae7707421e8b2c9bb4f80e538b4a1fdf2b7
parentMerge pull request #25 from JacobPalecki/GUI (diff)
downloadrawaccel-7f759719f816c2428d18bf53cc78e6b2402fb3f8.tar.xz
rawaccel-7f759719f816c2428d18bf53cc78e6b2402fb3f8.zip
Fix for second dot not clearing:
-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();