vak.plot.annot.plot_labels#
- vak.plot.annot.plot_labels(labels, t, y=0.6, ax=None, text_kwargs=None)[source]#
plot labels on an axis.
- Parameters:
labels (list, numpy.ndarray) –
t (numpy.ndarray) – times at which to plot labels
y (float, int) – height on y-axis at which segments should be plotted. Default is 0.5.
ax (matplotlib.axes.Axes) – axes on which to plot segment. Default is None, in which case a new Axes instance is created
text_kwargs (dict) – keyword arguments passed to the Axes.text method that plots the labels. Default is None.