visualize ❭ current_visualizer ❭ CurrentAnalysis
CurrentAnalysis¶
-
class visualize.current_visualizer.CurrentAnalysis(cell_or_dict=
None, secID='bifurcation', segID=-1, rangeVars=None, colormap=None, tVec=None)¶ Plot the individual ion currents and the net current of a cell simulation.
Inspect the individual ion currents and the net current of a single cell segment.
Initialize the CurrentAnalysis object.
- Parameters:¶
cell_or_dict (dict or Cell) – The cell object, or a dictionary containing equivalent simulation data.
secID (int) – The index of the section. Default is ‘bifurcation’.
segID (int) – The index of the segment. Default is -1.
rangeVars (list) – The names of the ion currents to plot. Default is
None, which plots all ion currents.colormap (dict) – The colormap for the ion currents. Default is
None.tVec (list) – The time vector. Default is
None. Only necessary ifcell_or_dictis a dictionary.
- Attributes:¶
- rangeVars¶
The names of the ion currents to plot. Default is
None, which plots all ion currents.- Type:¶
list
- Methods:¶
Get the section current by the range variable name.
Compute the ionic currents of a section.
plot_areas(ax, normalized, plot_net, plot_voltage, t_stim, select_window_relative_to_stim)Plot the ion currents and the net current of a cell simulation.
plot_lines(ax, legend)Plot the ion currents and the net current of a cell simulation.