neurom.viewerΒΆ

Tools to visualize neuron morphological objects

Examples

>>> from neurom import viewer
>>> nrn = ... # load a neuron
>>> viewer.draw(nrn)                    # 2d plot
>>> viewer.draw(nrn, mode='3d')         # 3d plot
>>> viewer.draw(nrn.neurites[0])        # 2d plot of neurite tree
>>> viewer.draw(nrn, mode='dendrogram') # dendrogram plot

Functions

draw Draw a morphology object

Exceptions

InvalidDrawModeError Exception class to indicate invalid draw mode
NotDrawableError Exception class for things that aren’t drawable
ViewerError Base class for viewer exceptions