You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(115) |
Aug
(120) |
Sep
(137) |
Oct
(170) |
Nov
(461) |
Dec
(263) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(120) |
Feb
(74) |
Mar
(35) |
Apr
(74) |
May
(245) |
Jun
(356) |
Jul
(240) |
Aug
(115) |
Sep
(78) |
Oct
(225) |
Nov
(98) |
Dec
(271) |
2009 |
Jan
(132) |
Feb
(84) |
Mar
(74) |
Apr
(56) |
May
(90) |
Jun
(79) |
Jul
(83) |
Aug
(296) |
Sep
(214) |
Oct
(76) |
Nov
(82) |
Dec
(66) |
2010 |
Jan
(46) |
Feb
(58) |
Mar
(51) |
Apr
(77) |
May
(58) |
Jun
(126) |
Jul
(128) |
Aug
(64) |
Sep
(50) |
Oct
(44) |
Nov
(48) |
Dec
(54) |
2011 |
Jan
(68) |
Feb
(52) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(2) |
2
(2) |
3
(2) |
4
|
5
(2) |
6
(4) |
7
|
8
|
9
|
10
|
11
|
12
|
13
(1) |
14
(2) |
15
(3) |
16
(7) |
17
(1) |
18
(1) |
19
(3) |
20
(16) |
21
(3) |
22
(4) |
23
(2) |
24
|
25
|
26
(6) |
27
(3) |
28
(9) |
29
(2) |
30
(2) |
|
Revision: 8216 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8216&view=rev Author: ryanmay Date: 2010年04月01日 03:41:24 +0000 (2010年4月01日) 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.
Revision: 8215 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8215&view=rev Author: ryanmay Date: 2010年04月01日 03:40:51 +0000 (2010年4月01日) Log Message: ----------- Add example of Hinton plots, which are used to plot weight matrices. Added Paths: ----------- trunk/matplotlib/examples/api/hinton_demo.py Added: trunk/matplotlib/examples/api/hinton_demo.py =================================================================== --- trunk/matplotlib/examples/api/hinton_demo.py (rev 0) +++ trunk/matplotlib/examples/api/hinton_demo.py 2010年04月01日 03:40:51 UTC (rev 8215) @@ -0,0 +1,59 @@ +#Initial idea from David Warde-Farley on the SciPy Cookbook +import numpy as np +import matplotlib.pyplot as plt +from matplotlib.patches import Rectangle +from matplotlib.ticker import NullLocator +#from matplotlib.collections import RegularPolyCollection +#from matplotlib.colors import BoundaryNorm, ListedColormap + +def hinton(W, maxWeight=None, ax=None): + """ + Draws a Hinton diagram for visualizing a weight matrix. + """ + if not ax: + fig = plt.figure() + ax = fig.add_subplot(1, 1, 1) + + if not maxWeight: + maxWeight = 2**np.ceil(np.log(np.abs(W).max())/np.log(2)) + + ax.patch.set_facecolor('gray') + 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' + size = np.sqrt(np.abs(w)) + rect = Rectangle([x - size / 2, y - size / 2], size, size, + facecolor=color, edgecolor=color) + ax.add_patch(rect) + ax.autoscale_view() + + # Reverse the yaxis limits + ax.set_ylim(*ax.get_ylim()[::-1]) + +## Potential way using polygon collections that just has an issue with +## easily getting the squares scaled by the data. + +# height,width = W.shape +# x = np.arange(width) +# y = np.arange(height) +# X,Y = np.meshgrid(x, y) +# xy = np.array([X.flatten(),Y.flatten()]).T +# scaled_data = W.flatten() / maxWeight + +# rect_col = RegularPolyCollection(4, rotation=np.pi/4, +# sizes=np.abs(scaled_data) * 72 / ax.figure.get_dpi(), offsets=xy, +# transOffset=ax.transData, norm=norm, cmap=cmap, edgecolor='none') +# ax.add_collection(rect_col) +# rect_col.set_array(scaled_data) +# ax.autoscale_view() + +if __name__ == '__main__': + hinton(np.random.rand(20, 20) - 0.5) + plt.title('Hinton Example') + plt.show() + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.