8000 Merge pull request #13962 from anntzer/colorbartypo · matplotlib/matplotlib@557cdfa · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

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 557cdfa

Browse files
authored
Merge pull request #13962 from anntzer/colorbartypo
Fix typo in code example in docstring.
2 parents 9d8a87d + c9ec54b commit 557cdfa
CC27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
Note that one can create a `ScalarMappable` "on-the-fly" to generate
151151
colorbars not attached to a previously drawn artist, e.g. ::
152152
153-
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap, ax=ax))
153+
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
154154
155155
cax : :class:`~matplotlib.axes.Axes` object, optional
156156
Axes into which the colorbar will be drawn.

0 commit comments

Comments
 (0)
0