neat.MorphTree.plot_1d¶
- MorphTree.plot_1d(ax, parr, *args, **kwargs)[source]¶
Plot an array where each element corresponds to the matching location on the x-axis with a depth-first ordering on a 1D plot
- Parameters:
ax (matplotlib.axes.Axes instance) – the ax object on which the plot will be made
parr (numpy.array of floats) – the array that will be plotted
args – arguments for matplotlib.pyplot.plot
kwargs – arguments for matplotlib.pyplot.plot
- Returns:
lines – the line segments corresponding to the value of the plotted array in each branch
- Return type:
list of matplotlib.lines.Line2D instances
- Raises:
AssertionError – When the number of elements in the data array in not equal to the number of elements on the x-axis