From 35513c62af90a8f2127248f14418de35c08bd8a7 Mon Sep 17 00:00:00 2001 From: Ruth Comer Date: Sun, 2 Oct 2022 09:56:44 +0100 Subject: [PATCH] DOC: colorbar may steal from array of axes --- lib/matplotlib/colorbar.py | 2 +- lib/matplotlib/figure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 8cf8c0e6c1eb..c8f49c0ad92d 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -1364,7 +1364,7 @@ def make_axes(parents, location=None, orientation=None, fraction=0.15, Parameters ---------- - parents : `~.axes.Axes` or list of `~.axes.Axes` + parents : `~.axes.Axes` or list or `numpy.ndarray` of `~.axes.Axes` The Axes to use as parents for placing the colorbar. %(_make_axes_kw_doc)s diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 447f508194a1..4aebc1696543 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -1197,7 +1197,7 @@ def colorbar( cax : `~matplotlib.axes.Axes`, optional Axes into which the colorbar will be drawn. - ax : `~matplotlib.axes.Axes`, list of Axes, optional + ax : `~.axes.Axes` or list or `numpy.ndarray` of Axes, optional One or more parent axes from which space for a new colorbar axes will be stolen, if *cax* is None. This has no effect if *cax* is set.