Пример #1
0
    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)
        ])
Пример #2
0
    def __init__(self):
        logging.debug('Initializing Space Plot')

        self.geometry = None
        self.section = None
        self.state_variables = []

        self.plot_widget = G.plotVariable(
            'Plot', position_x=90, position_y=405)
        self.plot_widget_2 = G.plotVariable(
            'Plot', position_x=490, position_y=405)
        self.plot_widget.on_close(self.close)
        self.plot_widget_2.on_close(self.close)

        GeppettoJupyterModelSync.events_controller.register_to_event(
            [GeppettoJupyterModelSync.events_controller._events['Select']], self.refresh_data)
Пример #3
0
 def analysis(self):
     self.plotWidget = G.plotVariable('Plot', ['VerySimpleCell.v_vec'])
Пример #4
0
 def analysis(self):
     # plot voltage vs time
     self.plotWidget = G.plotVariable(
         'Plot', ['SimpleCell.v_vec_dend', 'SimpleCell.v_vec_soma'])
Пример #5
0
 def analysis(self):
     # plot voltage vs time
     self.plotWidget = G.plotVariable(
         'Plot', ['Ring.v_vec_dend_0', 'Ring.v_vec_soma_0'])