Skip to content

Commit c9908bf

Browse files
committed
Text tweaks
1 parent 5377b14 commit c9908bf

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Tutorial/Source/HodgkinHuxley.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def Main(self, init_values=[-64.99584, 0.05296, 0.59590, 0.31773]):
325325
plt.title('Simulation of Hodgkin Huxley model neuron')
326326
plt.plot(self.t, gna, 'c', label='$g_{Na}$')
327327
plt.plot(self.t, gk, 'y', label='$g_{K}$')
328-
plt.ylabel('Cond. dens')
328+
plt.ylabel('Cond. dens ($mS/cm^2$)')
329329
plt.legend()
330330
self.plot_count += 1
331331

@@ -338,7 +338,7 @@ def Main(self, init_values=[-64.99584, 0.05296, 0.59590, 0.31773]):
338338
plt.plot(self.t, ina, 'c', label='$I_{Na}$')
339339
plt.plot(self.t, ik, 'y', label='$I_{K}$')
340340
plt.plot(self.t, il, 'm', label='$I_{L}$')
341-
plt.ylabel('Current')
341+
plt.ylabel('Current ($\\mu{A}/cm^2$)')
342342
plt.legend()
343343
self.plot_count += 1
344344

@@ -349,7 +349,7 @@ def Main(self, init_values=[-64.99584, 0.05296, 0.59590, 0.31773]):
349349
ax1 = plt.subplot(self.num_plots,1,self.plot_count + 1)
350350
plt.title('Simulation of Hodgkin Huxley model neuron')
351351
plt.plot(self.t, V, 'k')
352-
plt.ylabel('V (mV)')
352+
plt.ylabel('$V_{m}$ (mV)')
353353
plt.xlabel('t (ms)')
354354
if not self.is_vclamp(): plt.ylim(-85,60)
355355
#plt.ylim(-1, 40)

notebooks/Python_HH_version/ui_widget.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ def highlight_slider():
206206

207207
#plot selectors
208208
header_plotting = ipywidgets.HTMLMath(value=r"<b> Select plots</b>")
209-
injected_current_plot_value = ipywidgets.Checkbox(value=True, description="Current injection plot", disabled=False,)
209+
injected_current_plot_value = ipywidgets.Checkbox(value=True, description="Current injection", disabled=False,)
210210
gating_plot_value = ipywidgets.Checkbox(value=True, description="Gating variables", disabled=False,)
211-
cond_dens_plot_value = ipywidgets.Checkbox(value=True, description="Conductance density", disabled=False,)
212-
current_plot_value = ipywidgets.Checkbox(value=True, description="Current", disabled=False,)
213-
memb_pot_plot_value = ipywidgets.Checkbox(value=True, description="Memb pot", disabled=False,)
211+
cond_dens_plot_value = ipywidgets.Checkbox(value=True, description="Conductance densities", disabled=False,)
212+
current_plot_value = ipywidgets.Checkbox(value=True, description="Current densities", disabled=False,)
213+
memb_pot_plot_value = ipywidgets.Checkbox(value=True, description="Membrane potential", disabled=False,)
214214
plot_selection_row=ipywidgets.VBox([header_plotting, ipywidgets.HBox([injected_current_plot_value, gating_plot_value, cond_dens_plot_value]), ipywidgets.HBox([current_plot_value, memb_pot_plot_value])])
215215

216216
#layout vertically all the widgets defined above

0 commit comments

Comments
 (0)