File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Original file line number Diff line number Diff line change @@ -1220,12 +1220,16 @@ 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.
1223
+ Axes into which the colorbar will be drawn. If `None`, then space
1224
+ will be stolen from the Axes(s) specified in *ax*
1224
1225
1225
1226
ax : `~.axes.Axes` or iterable or `numpy.ndarray` of Axes, optional
1226
- One or more parent axes from which space for a new colorbar axes
1227
- will be stolen, if *cax* is None. This has no effect if *cax* is
1228
- set.
1227
+ If `None`, defaults to ``mappable.axes``.
1228
+
1229
+ If *cax* is None, specifies the one or more parent axes from which
1230
+ space for a new colorbar axes will be stolen.
1231
+
1232
+ This has no effect if *cax* is set.
1229
1233
1230
1234
use_gridspec : bool, optional
1231
1235
If *cax* is ``None``, a new *cax* is created as an instance of
You can’t perform that action at this time.
0 commit comments