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

Skip to content

Commit 662581f

Browse files
committed
reworked callback api for cm.ScalarMappable
svn path=/trunk/matplotlib/; revision=5282
1 parent 44bc950 commit 662581f

File tree

8 files changed

+35
-1357
lines changed

8 files changed

+35
-1357
lines changed

API_CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Rewrote the cm.ScalarMappable callback infrastructure to use
2+
cbook.CallbackRegistry rather than custom callback handling. Amy
3+
users of add_observer/notify of the cm.ScalarMappable should uae
4+
the cm.ScalarMappable.callbacksSM CallbackRegistry instead.
5+
16
New axes function and Axes method provide control over the plot
27
color cycle: axes.set_default_color_cycle(clist) and
38
Axes.set_color_cycle(clist).

CHANGELOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2008-05-27 Rewrote the cm.ScalarMappable callback infrastructure to
2+
use cbook.CallbackRegistry rather than custom callback
3+
handling. Amy users of add_observer/notify of the
4+
cm.ScalarMappable should uae the
5+
cm.ScalarMappable.callbacksSM CallbackRegistry instead. JDH
6+
17
2008-05-27 Fix TkAgg build on Ubuntu 8.04 (and hopefully a more
28
general solution for other platforms, too.)
39

examples/pylab/image_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
A.shape = w, h
99

1010
extent = (0, 25, 0, 25)
11-
im = imshow(A, cmap=cm.jet, origin='upper', extent=extent)
11+
im = imshow(A, cmap=cm.hot, origin='upper', extent=extent)
1212

1313
markers = [(15.9, 14.5), (16.8, 15)]
1414
x,y = zip(*markers)

0 commit comments

Comments
 (0)