diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 76e605d71b03..6942764080cf 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2540,27 +2540,21 @@ def in_axes(self, mouseevent): return self.patch.contains(mouseevent)[0] def get_autoscale_on(self): - """ - Get whether autoscaling is applied for both axes on plot commands - """ + """Return True if each axis is autoscaled, False otherwise.""" return self._autoscaleXon and self._autoscaleYon def get_autoscalex_on(self): - """ - Get whether autoscaling for the x-axis is applied on plot commands - """ + """Return whether the x-axis is autoscaled.""" return self._autoscaleXon def get_autoscaley_on(self): - """ - Get whether autoscaling for the y-axis is applied on plot commands - """ + """Return whether the y-axis is autoscaled.""" return self._autoscaleYon def set_autoscale_on(self, b): """ - Set whether autoscaling is applied to axes on the next draw or call to - `.Axes.autoscale_view`. + Set whether autoscaling is applied to each axis on the next draw or + call to `.Axes.autoscale_view`. Parameters ---------- @@ -2571,8 +2565,8 @@ def set_autoscale_on(self, b): def set_autoscalex_on(self, b): """ - Set whether autoscaling for the x-axis is applied to axes on the next - draw or call to `.Axes.autoscale_view`. + Set whether the x-axis is autoscaled on the next draw or call to + `.Axes.autoscale_view`. Parameters ---------- @@ -2582,8 +2576,8 @@ def set_autoscalex_on(self, b): def set_autoscaley_on(self, b): """ - Set whether autoscaling for the y-axis is applied to axes on the next - draw or call to `.Axes.autoscale_view`. + Set whether the y-axis is autoscaled on the next draw or call to + `.Axes.autoscale_view`. Parameters ---------- diff --git a/lib/mpl_toolkits/mplot3d/axes3d.py b/lib/mpl_toolkits/mplot3d/axes3d.py index d7289c68b658..5ea36f1cd431 100644 --- a/lib/mpl_toolkits/mplot3d/axes3d.py +++ b/lib/mpl_toolkits/mplot3d/axes3d.py @@ -539,31 +539,22 @@ def update_datalim(self, xys, **kwargs): pass def get_autoscale_on(self): - """ - Get whether autoscaling is applied for all axes on plot commands - """ + # docstring inherited return super().get_autoscale_on() and self.get_autoscalez_on() def get_autoscalez_on(self): - """ - Get whether autoscaling for the z-axis is applied on plot commands - """ + """Return whether the z-axis is autoscaled.""" return self._autoscaleZon def set_autoscale_on(self, b): - """ - Set whether autoscaling is applied on plot commands - - Parameters - ---------- - b : bool - """ + # docstring inherited super().set_autoscale_on(b) self.set_autoscalez_on(b) def set_autoscalez_on(self, b): """ - Set whether autoscaling for the z-axis is applied on plot commands + Set whether the z-axis is autoscaled on the next draw or call to + `.Axes.autoscale_view`. Parameters ----------