Skip to content

Commit 06396e2

Browse files
committed
DOC: call out numpy array specifically
We support higher-dimensional arrays (not clear we _should_ but we do).
1 parent bb510b9 commit 06396e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15,
13941394
13951395
Parameters
13961396
----------
1397-
parents : `~.axes.Axes` or iterable of `~.axes.Axes`
1397+
parents : `~.axes.Axes` or iterable or `numpy.ndarray` of `~.axes.Axes`
13981398
The Axes to use as parents for placing the colorbar.
13991399
%(_make_axes_kw_doc)s
14001400

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ def colorbar(
11951195
cax : `~matplotlib.axes.Axes`, optional
11961196
Axes into which the colorbar will be drawn.
11971197
1198-
ax : `~.axes.Axes` or iterable of Axes, optional
1198+
ax : `~.axes.Axes` or iterable or `numpy.ndarray` of Axes, optional
11991199
One or more parent axes from which space for a new colorbar axes
12001200
will be stolen, if *cax* is None. This has no effect if *cax* is
12011201
set.

0 commit comments

Comments
 (0)