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 3eb3c87

Browse filesBrowse files
tacaswelltimhoffm
andauthored
DOC: re-order docstring
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 92d82a9 commit 3eb3c87
Copy full SHA for 3eb3c87

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+4
-6
lines changed

‎lib/matplotlib/figure.py

Copy file name to clipboardExpand all lines: lib/matplotlib/figure.py
+4-6Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,13 +1225,11 @@ def colorbar(
12251225
specified in *ax*.
12261226
12271227
ax : `~.axes.Axes` or iterable or `numpy.ndarray` of Axes, optional
1228-
If `None`, defaults to the axes that contains the mappable used to
1229-
create the colorbar.
1228+
The one or more parent Axes from which space for a new colorbar Axes
1229+
will be stolen. This parameter is only used if *cax* is not set.
12301230
1231-
If *cax* is None, specifies the one or more parent axes from which
1232-
space for a new colorbar axes will be stolen.
1233-
1234-
This has no effect if *cax* is set.
1231+
Defaults to the Axes that contains the mappable used to create the
1232+
colorbar.
12351233
12361234
use_gridspec : bool, optional
12371235
If *cax* is ``None``, a new *cax* is created as an instance of

0 commit comments

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