Changeset 363 for trunk

Show
Ignore:
Timestamp:
12/10/08 11:34:40 (3 years ago)
Author:
LaurentPerrinet
Message:

some polishing of theretina in wiki:examples

Location:
trunk/examples/retina
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/retina/benchmark_retina.py

    r340 r363  
    2828from NeuroTools.parameters import * 
    2929p =  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))), 
    3131                'kernelseed' : ParameterRange(list([12345 + k for k in range(N_seeds)]))}) 
    3232 
     
    134134#Lmargin, Rmargin, dmargin, umargin = 0.05, 0.15, 0.05,  0.05 
    135135#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) 
     137pylab.axes([0.1, 0.33, .3/1.61 , .3]) # [left, bottom, width, height] 
     138pylab.scatter(x,y,c=params['amplitude'], faceted = False) #, edgecolors='none' 
     139pylab.title('Input',fontsize ='small') 
     140pylab.axis('equal') 
    139141pylab.subplot(232) 
    140142pylab.plot(lower_edges[:-1],temporal_ON) 
     
    142144#pylab.title('time course ON',fontsize = 'small') 
    143145pylab.xticks( numpy.linspace(0, params.simtime, 5) ) 
    144 pylab.ylabel('ON activity (spike / s / neuron)') 
     146pylab.ylabel('ON activity (Hz / neuron)') 
    145147#pylab.axis('tight') 
    146148pylab.subplot(235) 
     
    148150#pylab.title('time course OFF',fontsize = 'small') 
    149151pylab.xticks( numpy.linspace(0, params.simtime, 5) ) 
    150 pylab.ylabel('OFF activity (spike / s / neuron)') 
     152pylab.ylabel('OFF activity (Hz / neuron)') 
    151153#pylab.axis('tight') 
    152154pylab.xlabel('time (ms)') 
    153155pylab.subplot(233) 
    154 pylab.scatter(x, y, c= map_spatial_ON[:,-1], edgecolors='none') 
     156pylab.scatter(x, y, c= map_spatial_ON[:,-1], faceted = False) #, edgecolors='none' 
    155157#pylab.title('spatial distribution ON',fontsize ='small') 
    156 #pylab.title('spatial distribution',fontsize ='small') 
     158pylab.title('Output',fontsize ='small') 
    157159pylab.subplot(236) 
    158 pylab.scatter(x, y, c= map_spatial_OFF[:,-1], edgecolors='none') 
     160pylab.scatter(x, y, c= map_spatial_OFF[:,-1], faceted = False) #, edgecolors='none' 
    159161#pylab.title('spatial distribution OFF',fontsize ='small') 
    160 #pylab.xlabel('distance from center') 
    161162 
    162  
    163  
    164  
    165 if 1: 
     163if 0: 
    166164    pylab.ion() 
    167165    pylab.show()