neurom.view.plot_tree

neurom.view.plot_tree(ax, tree, plane='xy', diameter_scale=1.0, linewidth=1.2, color=None, alpha=0.8)[source]

Plots a 2d figure of the tree’s segments

Parameters:
  • ax (matplotlib axes) – on what to plot
  • tree (neurom.core.Tree or neurom.core.Neurite) – plotted tree
  • plane (str) – Any pair of ‘xyz’
  • diameter_scale (float) – Scale factor multiplied with segment diameters before plotting
  • linewidth (float) – all segments are plotted with this width, but only if diameter_scale=None
  • color (str or None) – Color of plotted values, None corresponds to default choice
  • alpha (float) – Transparency of plotted values

Note

If the tree contains one single point the plot will be empty since no segments can be constructed.