tick.plot.stems

tick.plot.stems(ys: list, titles: list = None, sync_axes: bool = True, rendering: str = 'matplotlib', fig_size: tuple = None)[source]

Plot several stem plots using either matplotlib or bokeh rendering. Axes can be synchronized, which means that all xlim and ylim are the same for matplotlib rendering, while zooming is done simultaneously on all stem plots for bokeh rendering.

Parameters

ys : list of numpy.array

A list of numpy arrays to be plotted using stem plots

titles : list of str, default=`None`

The titles of each stem plot

sync_axes : bool, default=`True`

If True, axes can be synchronized, which means that for matplotlib rendering, the xlim and ylim are the same, while for bokeh rendering, this means that zooming is done simultaneously on all stems.

If True, the axes of the stem plot are synchronized (available only with rendering='bokeh'

rendering : {‘matplotlib’, ‘bokeh’}, default=’matplotlib’

Rendering library. ‘bokeh’ might fail if the module is not installed.

fig_size: `tuple`, default=`None` :

Figure size. Default is (8, 2.5) for matplotlib rendering and (600, 200) for bokeh rendering.

Returns

output : bokeh.models.layouts.Column, matplotlib.pyplot.Figure or None

Depending on the rendering type, returns a bokeh or a matplotlib object containing the layout of the plot, or None otherwise