def analysis(self): #from matplotlib import pyplot #pyplot.figure(figsize=(8,4)) # Default figsize is (8,6) #pyplot.plot(self.t_vec, self.v_vec) #pyplot.xlabel('time (ms)') #pyplot.ylabel('mV') #pyplot.show() G.plotVariable('Plot', ['VerySimpleCell.v_vec'])
def analysis(self): #from matplotlib import pyplot # pyplot.figure(figsize=(8,4)) # Default figsize is (8,6) # pyplot.plot(self.t_vec, self.v_vec_soma, label='soma') # pyplot.plot(self.t_vec, self.v_vec_dend, 'r', label='dend') # pyplot.xlabel('time (ms)') # pyplot.ylabel('mV') # pyplot.legend() # pyplot.show() #plot voltage vs time G.plotVariable('Plot', ['SimpleCell.v_vec_dend', 'SimpleCell.v_vec_soma'])
def plot_voltage(self): """Plot the recorded traces""" #pyplot.figure(figsize=(8,4)) # Default figsize is (8,6) #pyplot.plot(self.t_vec, self.soma_v_vec, color='black', label='soma(0.5') #pyplot.plot(self.t_vec, self.dend_v_vec, color='red', label='dend(0.5)') #pyplot.legend() #pyplot.xlabel('time (ms)') #pyplot.ylabel('mV') #pyplot.ylim(-80,20) #pyplot.title('Cell voltage') #pyplot.show() G.plotVariable('Plot', ['SimpleNetwork.soma_v_vec_' + str(self.cell_index), 'SimpleNetwork.dend_v_vec_' + str(self.cell_index)])