public void AdjustAxesAutoScale(bool state) { ScatterPlot[] plots = {SlaveFitPlot, SlaveDataPlot}; foreach (ScatterPlot plot in plots) { plot.CanScaleYAxis = state; plot.CanScaleXAxis = state; } }