plot_hoc

visualize.plot_hoc(hoc_file, **kwargs)

Plot a hoc file using matplotlib.

Instatiate a CellMorphologyVisualizer object to plot a morphology from a .hoc file.

Parameters:
hoc_file : str

The path to the .hoc file

**kwargs

additional arguments to pass to plot()

Returns:

The figure object

Return type:

Figure

Example:

from visualize import plot_hoc
fn = "getting_started/example_data/anatomical_constraints/86_C2_center.hoc"
plot_hoc(fn)
docs/_static/_images/86_hoc.png