Changeset 345
- Timestamp:
- 11/15/08 19:54:18 (2 months ago)
- Files:
-
- trunk/examples/sfn2008/c_data (added)
- trunk/examples/sfn2008/sfn_example1.py (modified) (3 diffs)
- trunk/examples/sfn2008/sfn_example_simulated_data.py (added)
- trunk/examples/sfn2008/sfn_example_spike2.py (added)
- trunk/examples/sfn2008/spike_data (added)
- trunk/examples/sfn2008/vm_data (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/sfn2008/sfn_example1.py
r344 r345 76 76 from NeuroTools.parameters import ParameterSpace 77 77 from NeuroTools.parameters import ParameterRange 78 from NeuroTools.sandbox import make_name 78 79 79 80 p = ParameterSpace({}) … … 81 82 p.c = ParameterRange([0.0,0.01,0.1,0.5]) 82 83 p.jitter = ParameterRange([0.0,1.0,5.0,]) 83 p.duration = 1000 0.84 p.duration = 1000. 84 85 85 86 dims, labels = p.parameter_space_dimension_labels() … … 87 88 corrcoef_results = numpy.empty(dims) 88 89 89 90 subplot_index = 191 90 for experiment in p.iter_inner(): 92 91 index = p.parameter_space_index(experiment) 93 92 cc, corrcoef = calc_cc(experiment) 93 time_axis = numpy.linspace(-cc.shape[0]/2.,cc.shape[0]/2.,cc.shape[0]) 94 94 corrcoef_results[index] = corrcoef 95 95 subplot_index = (dims[1]*index[0])+index[1] 96 96 pylab.subplot(dims[0],dims[1],subplot_index+1) 97 pylab.plot( cc)98 pylab.title( str(index))99 #100 #subplot_index += 197 pylab.plot(time_axis,cc) 98 pylab.title(make_name(experiment,p.range_keys())) 99 pylab.xlim(-30,30.) 100 pylab.ylim(0,130.) 101 101 102 102

