====== Differences ====== This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
analysis:nsb2016:week3long [2016/07/04 02:40] mvdm created |
analysis:nsb2016:week3long [2018/04/17 15:20] (current) |
||
---|---|---|---|
Line 163: | Line 163: | ||
This may not be what you were expecting! If you give ''plot()'' only one input argument (''this_spk'' in this case) it will, by default, plot the **index** of each element against its **value**. | This may not be what you were expecting! If you give ''plot()'' only one input argument (''this_spk'' in this case) it will, by default, plot the **index** of each element against its **value**. | ||
- | Let's unpack that statement so it is really clear: we have an array with five values here: the spike times of five spikes of neuron 11. ''plot()'' plots the value of the first element (''this_spk(1)'') at x-coordinate ''1'' (its index, i.e. position in the array), and so forth for the whole length of the array. It also connects the data points with a blue line. | + | Let's unpack that statement so it is really clear: we have an array with five values here: the spike times of four spikes of neuron 17. ''plot()'' plots the value of the first element (''this_spk(1)'') at x-coordinate ''1'' (its index, i.e. position in the array), and so forth for the whole length of the array. It also connects the data points with a blue line. |
Let's plot the same data differently: | Let's plot the same data differently: |