visualizedendrogramDendrogram

Dendrogram

class visualize.dendrogram.Dendrogram(cell)

Plot a dendrogram of a Cell object.

Dendrograms are schematic representations of neuron morphologies.

Example:

>>> d = Dendrogram(cell)
>>> ax = d.plot()
>>> ax.set_xlabel('Distance from soma ($\mu m$)')
../../../_images/dendrogram.png
Parameters:

cell (Cell) – The cell object.

Attributes:

cell

The cell object.

Type:

Cell

dendrogram_db

A list of _DendrogramSection objects.

Type:

list

dendrogram_db_by_name

A dictionary of dendrogram sections by name.

Type:

dict

dendrogram_db_by_sec_id

A dictionary of dendrogram sections by section ID.

Type:

dict

main_bifur_dist

The distance to the main bifurcation, in \(\mu m\).

Type:

float

Methods:

plot(ax)

Plot the dendrogram.

get_parent_by_name(name)

Get the parent of a dendrogram section by its name.

_plot_dendrogram(ax, colormap)

Plot the dendogram on an axes object.