Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4159ae

Browse files
committed
DOCS: describe shared axes behavior with units
1 parent bb71b00 commit f4159ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,10 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
12581258
column subplot are created. To later turn other subplots' ticklabels
12591259
on, use `~matplotlib.axes.Axes.tick_params`.
12601260
1261+
When subplots have a shared axis that has units, calling
1262+
`~matplotlib.axis.Axis.set_units` will update each axis with the
1263+
new units.
1264+
12611265
squeeze : bool, default: True
12621266
- If True, extra dimensions are squeezed out from the returned
12631267
array of `~matplotlib.axes.Axes`:

0 commit comments

Comments
 (0)