neurom.view.plot_neuron¶
-
neurom.view.
plot_neuron
(ax, nrn, plane='xy', soma_outline=True, diameter_scale=1.0, linewidth=1.2, color=None, alpha=0.8)[source]¶ Plots a 2D figure of the neuron, that contains a soma and the neurites
Parameters: - ax (matplotlib axes) – on what to plot
- nrn (neuron) – neuron to be plotted
- soma_outline (bool) – should the soma be drawn as an outline
- 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