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 9d8a87d + c9ec54b commit 557cdfaCopy full SHA for 557cdfa
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