### Site Tools

analysis:nsb2016:week3long

# Differences

This shows you the differences between two versions of the page.

 analysis:nsb2016:week3long [2016/07/03 22:40]mvdm created analysis:nsb2016:week3long [2018/02/26 14:15]course-w16 2021/03/10 11:53 mvdm 2018/07/07 10:19 external edit2018/02/26 14:15 course-w16 2016/07/03 22:40 mvdm created 2021/03/10 11:53 mvdm 2018/07/07 10:19 external edit2018/02/26 14:15 course-w16 2016/07/03 22:40 mvdm created Next revision Both sides next revision 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:​