From f4159ae679007c904a95ecbf76d7615d44c06a9c Mon Sep 17 00:00:00 2001 From: Lee Johnston Date: Tue, 25 Aug 2020 09:29:11 -0500 Subject: [PATCH 1/2] DOCS: describe shared axes behavior with units --- lib/matplotlib/pyplot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 73e77f6f0174..ba82e3433716 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -1258,6 +1258,10 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True, column subplot are created. To later turn other subplots' ticklabels on, use `~matplotlib.axes.Axes.tick_params`. + When subplots have a shared axis that has units, calling + `~matplotlib.axis.Axis.set_units` will update each axis with the + new units. + squeeze : bool, default: True - If True, extra dimensions are squeezed out from the returned array of `~matplotlib.axes.Axes`: From 26ae2dccbe4322819b0d0c1e18ba9096ff60fa45 Mon Sep 17 00:00:00 2001 From: Lee Johnston Date: Tue, 8 Sep 2020 07:28:07 -0500 Subject: [PATCH 2/2] describe shared axes behavior with units --- lib/matplotlib/gridspec.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/gridspec.py b/lib/matplotlib/gridspec.py index 192d22173d5b..391c409320c3 100644 --- a/lib/matplotlib/gridspec.py +++ b/lib/matplotlib/gridspec.py @@ -286,6 +286,10 @@ def subplots(self, *, sharex=False, sharey=False, squeeze=True, first column subplot are created. To later turn other subplots' ticklabels on, use `~matplotlib.axes.Axes.tick_params`. + When subplots have a shared axis that has units, calling + `~matplotlib.axis.Axis.set_units` will update each axis with the + new units. + squeeze : bool, optional, default: True - If True, extra dimensions are squeezed out from the returned array of Axes: