|
From: <ry...@us...> - 2010-04-01 03:41:31
|
Revision: 8216
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8216&view=rev
Author: ryanmay
Date: 2010-04-01 03:41:24 +0000 (Thu, 01 Apr 2010)
Log Message:
-----------
Clean up a little more.
Modified Paths:
--------------
trunk/matplotlib/examples/api/hinton_demo.py
Modified: trunk/matplotlib/examples/api/hinton_demo.py
===================================================================
--- trunk/matplotlib/examples/api/hinton_demo.py 2010-04-01 03:40:51 UTC (rev 8215)
+++ trunk/matplotlib/examples/api/hinton_demo.py 2010-04-01 03:41:24 UTC (rev 8216)
@@ -21,8 +21,6 @@
ax.set_aspect('equal', 'box')
ax.xaxis.set_major_locator(NullLocator())
ax.yaxis.set_major_locator(NullLocator())
- cmap = ListedColormap(['black', 'white'])
- norm = BoundaryNorm([-1., 0., 1.], cmap.N)
for (x,y),w in np.ndenumerate(W):
color = 'white' if w > 0 else 'black'
@@ -44,6 +42,8 @@
# X,Y = np.meshgrid(x, y)
# xy = np.array([X.flatten(),Y.flatten()]).T
# scaled_data = W.flatten() / maxWeight
+# cmap = ListedColormap(['black', 'white'])
+# norm = BoundaryNorm([-1., 0., 1.], cmap.N)
# rect_col = RegularPolyCollection(4, rotation=np.pi/4,
# sizes=np.abs(scaled_data) * 72 / ax.figure.get_dpi(), offsets=xy,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|