Changeset 363
- Timestamp:
- 12/10/08 11:34:40 (3 years ago)
- Location:
- trunk/examples/retina
- Files:
-
- 2 modified
-
benchmark_retina.py (modified) (4 diffs)
-
results/fig-benchmark_retina.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/retina/benchmark_retina.py
r340 r363 28 28 from NeuroTools.parameters import * 29 29 p = ParameterSpace({ 30 'snr' : ParameterRange(list(numpy.linspace(0. 1,2.0,N_snr))),30 'snr' : ParameterRange(list(numpy.linspace(0.5,4.0,N_snr))), 31 31 'kernelseed' : ParameterRange(list([12345 + k for k in range(N_seeds)]))}) 32 32 … … 134 134 #Lmargin, Rmargin, dmargin, umargin = 0.05, 0.15, 0.05, 0.05 135 135 #pylab.axes([Lmargin, dmargin , 1.0 - Rmargin- Lmargin,1.0-umargin-dmargin]) # [left, bottom, width, height] 136 pylab.subplot(131) 137 pylab.scatter(x,y,c=params['amplitude'], edgecolors='none') 138 136 #pylab.subplot(131) 137 pylab.axes([0.1, 0.33, .3/1.61 , .3]) # [left, bottom, width, height] 138 pylab.scatter(x,y,c=params['amplitude'], faceted = False) #, edgecolors='none' 139 pylab.title('Input',fontsize ='small') 140 pylab.axis('equal') 139 141 pylab.subplot(232) 140 142 pylab.plot(lower_edges[:-1],temporal_ON) … … 142 144 #pylab.title('time course ON',fontsize = 'small') 143 145 pylab.xticks( numpy.linspace(0, params.simtime, 5) ) 144 pylab.ylabel('ON activity ( spike / s/ neuron)')146 pylab.ylabel('ON activity (Hz / neuron)') 145 147 #pylab.axis('tight') 146 148 pylab.subplot(235) … … 148 150 #pylab.title('time course OFF',fontsize = 'small') 149 151 pylab.xticks( numpy.linspace(0, params.simtime, 5) ) 150 pylab.ylabel('OFF activity ( spike / s/ neuron)')152 pylab.ylabel('OFF activity (Hz / neuron)') 151 153 #pylab.axis('tight') 152 154 pylab.xlabel('time (ms)') 153 155 pylab.subplot(233) 154 pylab.scatter(x, y, c= map_spatial_ON[:,-1], edgecolors='none')156 pylab.scatter(x, y, c= map_spatial_ON[:,-1], faceted = False) #, edgecolors='none' 155 157 #pylab.title('spatial distribution ON',fontsize ='small') 156 #pylab.title('spatial distribution',fontsize ='small')158 pylab.title('Output',fontsize ='small') 157 159 pylab.subplot(236) 158 pylab.scatter(x, y, c= map_spatial_OFF[:,-1], edgecolors='none')160 pylab.scatter(x, y, c= map_spatial_OFF[:,-1], faceted = False) #, edgecolors='none' 159 161 #pylab.title('spatial distribution OFF',fontsize ='small') 160 #pylab.xlabel('distance from center')161 162 162 163 164 165 if 1: 163 if 0: 166 164 pylab.ion() 167 165 pylab.show()
