Skip to content

Commit

Permalink
Merge pull request #13965 from meeseeksmachine/auto-backport-of-pr-13…
Browse files Browse the repository at this point in the history
…962-on-v3.1.x

Backport PR #13962 on branch v3.1.x (Fix typo in code example in docstring.)
  • Loading branch information
dstansby committed Apr 15, 2019
2 parents cc45104 + ff83319 commit 28f680f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/colorbar.py
Expand Up @@ -150,7 +150,7 @@
Note that one can create a `ScalarMappable` "on-the-fly" to generate
colorbars not attached to a previously drawn artist, e.g. ::
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap, ax=ax))
fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
cax : :class:`~matplotlib.axes.Axes` object, optional
Axes into which the colorbar will be drawn.
Expand Down

0 comments on commit 28f680f

Please sign in to comment.