spectrochempy.plot_multipleο
- plot_multiple(datasets, method='scatter', pen=True, labels=None, marker='AUTO', color='AUTO', ls='AUTO', lw=1, shift=0, **kwargs)[source]ο
Overlay several 1D datasets on a single Matplotlib axes.
- Parameters:
datasets (
listof 1DNDDataset) β Datasets to plot. If a single dataset is passed,plot_multiple()falls back to the regulardataset.plot()path and preserves the requested method.method (
stramong [scatter, pen]) β Geometry to use for each overlaid dataset."scatter"produces marker-based rendering;"pen"produces line rendering.pen (bool, optional, default: True) β If
method="scatter", also draw connecting lines between markers.labels (a
listofstr, optional) β Labels used for the legend. The length of the list must match the number of datasets to plot.marker (
str, list` osstrorAUTO, optional, default: βAUTOβ) β Marker type for scatter plot. If marker is not provided then the scatter type of plot is chosen automatically.color (
str, list` osstrorAUTO, optional, default: βAUTOβ) β Color of the lines. If color is not provided then the color of the lines is chosen automatically.ls (
str,listosstrorAUTO, optional, default: βAUTOβ) β Line style definition. If ls is not provided then the line style is chosen automatically.lw (
float,list`of `floats, optional, default: 1.0) β Line width. If lw is not provided then the line width is chosen automatically.shift (
float,list`of `floats, optional, default: 0.0) β Vertical shift of the lines.**kwargs β Other parameters passed to the underlying 1D plotting calls. Common aliases such as
lw,ls,ms,mew, andcare normalized internally before rendering.
- Returns:
matplotlib.axes.Axes β The shared axes containing the overlaid datasets.
See also
Examples using spectrochempy.plot_multipleο
Using plot_multiple to plot several datasets on the same figure