bluecellulab.analysis.plotting

Module for plotting analysis results of cell simulations.

Functions

plot_fi_curve(currents, spike_count, ...[, ...])

Plots the F-I (Frequency-Current) curve.

plot_iv_curve(currents, voltages, ...[, ...])

Plots the IV curve.

bluecellulab.analysis.plotting.plot_fi_curve(currents, spike_count, injecting_section, injecting_segment, recording_section, recording_segment, show_figure=True, save_figure=False, output_dir='./', output_fname='fi_curve.pdf')[source]

Plots the F-I (Frequency-Current) curve.

Parameters:
  • currents (list) – The injected current levels (nA).

  • spike_count (list) – The number of spikes recorded for each current level.

  • injecting_section (str) – The section in the cell where the current was injected.

  • injecting_segment (float) – The segment position (0.0 to 1.0) where the current was injected.

  • recording_section (str) – The section in the cell where spikes were recorded.

  • recording_segment (float) – The segment position (0.0 to 1.0) where spikes were recorded.

  • show_figure (bool) – Whether to display the figure. Default is True.

  • save_figure (bool) – Whether to save the figure. Default is False.

  • output_dir (str) – The directory to save the figure if save_figure is True. Default is “./”.

  • output_fname (str) – The filename to save the figure as if save_figure is True. Default is “fi_curve.pdf”.

Raises:

ValueError – If the lengths of currents and spike counts do not match.

bluecellulab.analysis.plotting.plot_iv_curve(currents, voltages, injecting_section, injecting_segment, recording_section, recording_segment, show_figure=True, save_figure=False, output_dir='./', output_fname='iv_curve.pdf')[source]

Plots the IV curve.

Parameters:
  • currents (list) – The injected current levels (nA).

  • voltages (list) – The corresponding steady-state voltages (mV).

  • injecting_section (str) – The section in the cell where the current was injected.

  • injecting_segment (float) – The segment position (0.0 to 1.0) where the current was injected.

  • recording_section (str) – The section in the cell where spikes were recorded.

  • recording_segment (float) – The segment position (0.0 to 1.0) where spikes were recorded.

  • show_figure (bool) – Whether to display the figure. Default is True.

  • save_figure (bool) – Whether to save the figure. Default is False.

  • output_dir (str) – The directory to save the figure if save_figure is True. Default is “./”.

  • output_fname (str) – The filename to save the figure as if save_figure is True. Default is “iv_curve.pdf”.

Raises:

ValueError – If the lengths of currents and voltages do not match.