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 a1f8b4e + b528281 commit 7b3996eCopy full SHA for 7b3996e
CHANGELOG
@@ -1,3 +1,7 @@
1
+2012-11-16 plt.set_cmap no longer throws errors if there is not already
2
+ an active colorable artist, such as an image, and just sets
3
+ up the colormap to use from that point forward. - PI
4
+
5
2012-11-13 Add a symmetric log normalization class to colors.py.
6
Also added some tests for the normalization class.
7
Till Stensitzki
lib/matplotlib/pyplot.py
@@ -2027,8 +2027,6 @@ def set_cmap(cmap):
2027
2028
if im is not None:
2029
im.set_cmap(cmap)
2030
- else:
2031
- raise RuntimeError('You must first define an image, eg with imshow')
2032
2033
draw_if_interactive()
2034
0 commit comments