diff options
| author | Jacob Palecki <[email protected]> | 2020-09-27 00:53:19 -0700 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-27 22:43:24 -0400 |
| commit | 7f759719f816c2428d18bf53cc78e6b2402fb3f8 (patch) | |
| tree | e50a6ae7707421e8b2c9bb4f80e538b4a1fdf2b7 | |
| parent | Merge pull request #25 from JacobPalecki/GUI (diff) | |
| download | rawaccel-7f759719f816c2428d18bf53cc78e6b2402fb3f8.tar.xz rawaccel-7f759719f816c2428d18bf53cc78e6b2402fb3f8.zip | |
Fix for second dot not clearing:
| -rw-r--r-- | grapher/Models/Charts/ChartState/CombinedState.cs | 4 | ||||
| -rw-r--r-- | grapher/Models/Charts/ChartState/XYTwoGraphState.cs | 4 | ||||
| -rw-r--r-- | grapher/Models/Charts/ChartXY.cs | 5 |
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(); |