Skip to content

Commit

Permalink
Plot: fix AxisPan bug
Browse files Browse the repository at this point in the history
discovered while working on #1148
  • Loading branch information
swharden committed Aug 10, 2021
1 parent 9a46a3a commit 416cff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ScottPlot/Plot/Plot.Axis.cs
Expand Up @@ -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
Expand Down

0 comments on commit 416cff6

Please sign in to comment.