from neuron import h
import matplotlib.pyplot as plt

soma = h.Section(name = "soma")

soma.L = 20
soma.diam = 20
soma.insert("hh")

iclamp = h.IClamp(soma(0.5))

iclamp.delay = 2
iclamp.dur = 0.1
iclamp.amp = 0.9

v = h.Vector().record(soma(0.5)._ref_v)             # Membrane potential vector
t = h.Vector().record(h._ref_t)                     # Time stamp vector

h.load_file('stdrun.hoc')

plt.figure()
plt.plot(t, v)
plt.xlabel('t (ms)')
plt.ylabel('v (mV)')
plt.show()


19a6b7f2fb4fd0c51ad3f02b387de39b5e0c498d
<mask token>

<mask token>
soma.insert('hh')
<mask token>
h.load_file('stdrun.hoc')
plt.figure()
plt.plot(t, v)
plt.xlabel('t (ms)')
plt.ylabel('v (mV)')
plt.show()

<mask token>
soma = h.Section(name='soma')
soma.L = 20
soma.diam = 20
soma.insert('hh')
iclamp = h.IClamp(soma(0.5))
iclamp.delay = 2
iclamp.dur = 0.1
iclamp.amp = 0.9
v = h.Vector().record(soma(0.5)._ref_v)
t = h.Vector().record(h._ref_t)
h.load_file('stdrun.hoc')
plt.figure()
plt.plot(t, v)
plt.xlabel('t (ms)')
plt.ylabel('v (mV)')
plt.show()

from neuron import h
import matplotlib.pyplot as plt
soma = h.Section(name='soma')
soma.L = 20
soma.diam = 20
soma.insert('hh')
iclamp = h.IClamp(soma(0.5))
iclamp.delay = 2
iclamp.dur = 0.1
iclamp.amp = 0.9
v = h.Vector().record(soma(0.5)._ref_v)
t = h.Vector().record(h._ref_t)
h.load_file('stdrun.hoc')
plt.figure()
plt.plot(t, v)
plt.xlabel('t (ms)')
plt.ylabel('v (mV)')
plt.show()

from neuron import h
import matplotlib.pyplot as plt

soma = h.Section(name = "soma")

soma.L = 20
soma.diam = 20
soma.insert("hh")

iclamp = h.IClamp(soma(0.5))

iclamp.delay = 2
iclamp.dur = 0.1
iclamp.amp = 0.9

v = h.Vector().record(soma(0.5)._ref_v)             # Membrane potential vector
t = h.Vector().record(h._ref_t)                     # Time stamp vector

h.load_file('stdrun.hoc')

plt.figure()
plt.plot(t, v)
plt.xlabel('t (ms)')
plt.ylabel('v (mV)')
plt.show()

