spectrochempy.plot_multiple๏ƒ

plot_multiple(datasets, method='scatter', pen=True, labels=None, marker='AUTO', color='AUTO', ls='AUTO', lw=1, shift=0, **kwargs)[source]๏ƒ

Plot a series of 1D datasets as a scatter plot with optional lines between markers.

Parameters:
  • datasets (list of 1D NDDataset) โ€“ NDdatasets to plot.

  • method (str among [scatter, pen]) โ€“ Method to use for plotting.

  • pen (bool, optional, default: True) โ€“ If method is scatter, this flag tells to draw also the lines between the marks.

  • labels (a list of str, optional) โ€“ Labels used for the legend. The length of the list must be equal to the number of datasets to plot.

  • marker (str, list` os str or AUTO, 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` os str or AUTO, optional, default: โ€˜AUTOโ€™) โ€“ Color of the lines. If color is not provided then the color of the lines is chosen automatically.

  • ls (str, list os str or AUTO, 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 that will be passed to the plot1D function.

Examples using spectrochempy.plot_multiple๏ƒ

Integrate a baseline-corrected IR band

Integrate a baseline-corrected IR band

Using plot_multiple to plot several datasets on the same figure

Using plot_multiple to plot several datasets on the same figure

Introduction to the plotting librairie

Introduction to the plotting librairie