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(
1220
1220
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
1221
1221
1222
1222
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*.
1225
1226
1226
1227
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.
1228
1230
1229
1231
If *cax* is None, specifies the one or more parent axes from which
1230
1232
space for a new colorbar axes will be stolen.
@@ -1270,6 +1272,7 @@ def colorbar(
1270
1272
However, this has negative consequences in other circumstances, e.g.
1271
1273
with semi-transparent images (alpha < 1) and colorbar extensions;
1272
1274
therefore, this workaround is not used by default (see issue #1188).
1275
+
1273
1276
"""
1274
1277
1275
1278
if ax is None :
You can’t perform that action at this time.
0 commit comments