diff options
| author | Jacob Palecki <[email protected]> | 2020-09-08 15:20:31 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-08 15:20:31 -0700 |
| commit | b8a8eb8a70cf71c61e5dc851229a83027f43194d (patch) | |
| tree | 6a13b6ed99bc181fa8931099583bd8ec228e23fa /grapher/Models/Charts/ChartXY.cs | |
| parent | Add option to turn off last mouse move dot (diff) | |
| download | rawaccel-b8a8eb8a70cf71c61e5dc851229a83027f43194d.tar.xz rawaccel-b8a8eb8a70cf71c61e5dc851229a83027f43194d.zip | |
By component, anisotropy full works
Diffstat (limited to 'grapher/Models/Charts/ChartXY.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartXY.cs | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/grapher/Models/Charts/ChartXY.cs b/grapher/Models/Charts/ChartXY.cs index 2037190..30be229 100644 --- a/grapher/Models/Charts/ChartXY.cs +++ b/grapher/Models/Charts/ChartXY.cs @@ -21,6 +21,9 @@ namespace grapher SetupChart(ChartX); SetupChart(ChartY); + Combined = false; + SetCombined(); + Widened = false; SetWidened(); } @@ -72,6 +75,8 @@ namespace grapher public bool Widened { get; private set; } + public bool Visible { get; private set; } + private PointData CombinedPointData { get; set; } private PointData XPointData { get; set; } @@ -167,7 +172,7 @@ namespace grapher { if (Combined) { - if (ChartX.Visible) + if (Visible) { ChartY.Show(); } @@ -206,17 +211,26 @@ namespace grapher public void Hide() { - ChartX.Hide(); - ChartY.Hide(); + if (Visible) + { + ChartX.Hide(); + ChartY.Hide(); + Visible = false; + } } public void Show() { - ChartX.Show(); - - if (!Combined) + if (!Visible) { - ChartY.Show(); + ChartX.Show(); + + if (!Combined) + { + ChartY.Show(); + } + + Visible = true; } } |