Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

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)