def plot_neuron(ax, nrn,<EOL>neurite_type=NeuriteType.all,<EOL>plane='<STR_LIT>',<EOL>soma_outline=True,<EOL>diameter_scale=_DIAMETER_SCALE, linewidth=_LINEWIDTH,<EOL>color=None, alpha=_ALPHA):
plot_soma(ax, nrn.soma, plane=plane, soma_outline=soma_outline, linewidth=linewidth,<EOL>color=color, alpha=alpha)<EOL>for neurite in iter_neurites(nrn, filt=tree_type_checker(neurite_type)):<EOL><INDENT>plot_tree(ax, neurite, plane=plane,<EOL>diameter_scale=diameter_scale, linewidth=linewidth,<EOL>color=color, alpha=alpha)<EOL><DEDENT>ax.set_title(nrn.name)<EOL>ax.set_xlabel(plane[<NUM_LIT:0>])<EOL>ax.set_ylabel(plane[<NUM_LIT:1>])<EOL>
Plots a 2D figure of the neuron, that contains a soma and the neurites

    Args:
        ax(matplotlib axes): on what to plot
        neurite_type(NeuriteType): an optional filter on the neurite type
        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