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

Skip to content

Commit 92d82a9

Browse files
tacaswelltimhoffmjklymak
committed
DOC: edits from review
Co-authored-by: Tim Hoffmann <[email protected]> Co-authored-by: Jody Klymak <[email protected]>
1 parent 9cfe4e9 commit 92d82a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,11 +1220,13 @@ def colorbar(
12201220
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
12211221
12221222
cax : `~matplotlib.axes.Axes`, optional
1223-
Axes into which the colorbar will be drawn. If `None`, then space
1224-
will be stolen from the Axes(s) specified in *ax*
1223+
Axes into which the colorbar will be drawn. If `None`, then a new
1224+
Axes is created and the space for it will be stolen from the Axes(s)
1225+
specified in *ax*.
12251226
12261227
ax : `~.axes.Axes` or iterable or `numpy.ndarray` of Axes, optional
1227-
If `None`, defaults to ``mappable.axes``.
1228+
If `None`, defaults to the axes that contains the mappable used to
1229+
create the colorbar.
12281230
12291231
If *cax* is None, specifies the one or more parent axes from which
12301232
space for a new colorbar axes will be stolen.
@@ -1270,6 +1272,7 @@ def colorbar(
12701272
However, this has negative consequences in other circumstances, e.g.
12711273
with semi-transparent images (alpha < 1) and colorbar extensions;
12721274
therefore, this workaround is not used by default (see issue #1188).
1275+
12731276
"""
12741277

12751278
if ax is None:

0 commit comments

Comments
 (0)