File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments