diff options
| author | Jacob Palecki <[email protected]> | 2020-09-22 02:28:35 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-22 02:28:35 -0700 |
| commit | 8e58892723ee10792c7d3db275da826f98d01677 (patch) | |
| tree | 25d5c35fba0734f891737aa038e882f318296353 /grapher/Models/Charts/ChartState/ChartState.cs | |
| parent | Merge remote-tracking branch 'upstream/Experiment' into GUI (diff) | |
| download | rawaccel-8e58892723ee10792c7d3db275da826f98d01677.tar.xz rawaccel-8e58892723ee10792c7d3db275da826f98d01677.zip | |
Mostly works
Diffstat (limited to 'grapher/Models/Charts/ChartState/ChartState.cs')
| -rw-r--r-- | grapher/Models/Charts/ChartState/ChartState.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/grapher/Models/Charts/ChartState/ChartState.cs b/grapher/Models/Charts/ChartState/ChartState.cs index ea67e83..e1c7d01 100644 --- a/grapher/Models/Charts/ChartState/ChartState.cs +++ b/grapher/Models/Charts/ChartState/ChartState.cs @@ -100,5 +100,29 @@ namespace grapher.Models.Charts.ChartState GainChart.Hide(); form.Height = SensitivityChart.Height + borderHeight; } + + public void SetLogarithmic(bool x, bool y) + { + if (x) + { + ChartXY.SetLogarithmic(SensitivityChart.ChartX); + ChartXY.SetLogarithmic(GainChart.ChartX); + } + else + { + ChartXY.SetStandard(SensitivityChart.ChartX); + ChartXY.SetStandard(GainChart.ChartX); + } + + if (y) + { + ChartXY.SetLogarithmic(SensitivityChart.ChartY); + ChartXY.SetLogarithmic(GainChart.ChartY); + } + { + ChartXY.SetStandard(SensitivityChart.ChartY); + ChartXY.SetStandard(GainChart.ChartY); + } + } } } |