visualizevoltage_trace_visualizervisualize_vt

visualize_vt

visualize.voltage_trace_visualizer.visualize_vt(vt, fig=None, soma_color='k', dend_color='#f7941d', BAC_select=295 + 80, lw=2, **kwargs)

Visualize voltage traces from the Hay stimulus protocols.

The results of e.g. biophysics_fitting.simulator.Simulator are nested dictionaries, containing various voltage traces. NEURON simulation results are NEURON vectors. This is a helper method to extract that data and plot out specific voltage traces from those results.

Parameters:
  • vt (dict) – dictionary containing the voltage traces. Must contain the keys:

    • ‘BAC.hay_measure’

    • ‘bAP.hay_measure’

    • ‘StepOne.hay_measure’

    • ‘StepTwo.hay_measure’

    • ‘StepThree.hay_measure’

  • fig (matplotlib.figure.Figure) – figure to plot the voltage traces on.

  • soma_color (str) – color to plot the soma voltage traces.

  • dend_color (str) – color to plot the dendrite voltage traces.

  • BAC_select (int) – timepoint for the end of the BAC stimulus.

Returns:

None

See also

See Hay et al. [2] for more details on the stimulus protocols.