From 7f759719f816c2428d18bf53cc78e6b2402fb3f8 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Sun, 27 Sep 2020 00:53:19 -0700 Subject: Fix for second dot not clearing: --- grapher/Models/Charts/ChartState/CombinedState.cs | 4 ++++ grapher/Models/Charts/ChartState/XYTwoGraphState.cs | 4 ++++ grapher/Models/Charts/ChartXY.cs | 5 +++++ 3 files changed, 13 insertions(+) (limited to 'grapher/Models/Charts') 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(); -- cgit v1.2.3