Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc45104 + ff83319 commit 28f680fCopy full SHA for 28f680f
1 file changed
lib/matplotlib/colorbar.py
@@ -150,7 +150,7 @@
150
Note that one can create a `ScalarMappable` "on-the-fly" to generate
151
colorbars not attached to a previously drawn artist, e.g. ::
152
153
- fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap, ax=ax))
+ fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax)
154
155
cax : :class:`~matplotlib.axes.Axes` object, optional
156
Axes into which the colorbar will be drawn.
0 commit comments