Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 92d82a9

Browse filesBrowse files
tacaswelltimhoffmjklymak
committed
DOC: edits from review
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Co-authored-by: Jody Klymak <jklymak@gmail.com>
1 parent 9cfe4e9 commit 92d82a9
Copy full SHA for 92d82a9

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.