MorphTree.plot1D(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

  • 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


lines – the line segments corresponding to the value of the plotted array in each branch

Return type

list of matplotlib.lines.Line2D instances


AssertionError – When the number of elements in the data array in not equal to the number of elements on the x-axis