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

Skip to content

Commit 3eb3c87

Browse files
tacaswelltimhoffm
andauthored
DOC: re-order docstring
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 92d82a9 commit 3eb3c87

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,13 +1225,11 @@ def colorbar(
12251225
specified in *ax*.
12261226
12271227
ax : `~.axes.Axes` or iterable or `numpy.ndarray` of Axes, optional
1228-
If `None`, defaults to the axes that contains the mappable used to
1229-
create the colorbar.
1228+
The one or more parent Axes from which space for a new colorbar Axes
1229+
will be stolen. This parameter is only used if *cax* is not set.
12301230
1231-
If *cax* is None, specifies the one or more parent axes from which
1232-
space for a new colorbar axes will be stolen.
1233-
1234-
This has no effect if *cax* is set.
1231+
Defaults to the Axes that contains the mappable used to create the
1232+
colorbar.
12351233
12361234
use_gridspec : bool, optional
12371235
If *cax* is ``None``, a new *cax* is created as an instance of

0 commit comments

Comments
 (0)