From 416cff60162ccdb6b80eace9974156821b0b34f0 Mon Sep 17 00:00:00 2001 From: Scott W Harden Date: Tue, 10 Aug 2021 18:00:58 -0400 Subject: [PATCH] Plot: fix AxisPan bug discovered while working on #1148 --- src/ScottPlot/Plot/Plot.Axis.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ScottPlot/Plot/Plot.Axis.cs b/src/ScottPlot/Plot/Plot.Axis.cs index 306648fb78..11b8fc754e 100644 --- a/src/ScottPlot/Plot/Plot.Axis.cs +++ b/src/ScottPlot/Plot/Plot.Axis.cs @@ -531,8 +531,9 @@ public void AxisPan(double dx = 0, double dy = 0) { if (!settings.AllAxesHaveBeenSet) settings.AxisAutoAll(); + settings.XAxis.Dims.Pan(dx); - settings.XAxis.Dims.Pan(dy); + settings.YAxis.Dims.Pan(dy); } #endregion