spectrochempy.NDDataset.plot

NDDataset.plot(method=None, **kwargs)[source]

Generic plot function.

This apply to a NDDataset but actually delegate the work to a plotter defined by the keyword parameter method.

Parameters
  • method (str, optional, default: “generic”) – Specify with plot method to use.

  • **kwargs – Any optional parameters to pass to the plot method. See plot_1D, plot_2D and plot_3D for a liste of possible arguments.

Returns

axe – The axe instance on which the plot has bee performed.

Examples

For 1D data, the default plot is done with method scatter

>>> nd = scp.NDDataset([1, 2, 3])
>>> _ = nd.plot()  # default to method="scatter"

or >>> _ = nd.plot(method=”scatter”)

Equivalently, one can also specify the method to use as follow: >>> _ = nd.plot_scatter() >>> _ = nd.plot_1D()

For

Examples using spectrochempy.NDDataset.plot

EFA analysis (Keller and Massart original example)

EFA analysis (Keller and Massart original example)

2D-IRIS analysis example

2D-IRIS analysis example

Fitting 1D dataset

Fitting 1D dataset

Units manipulation examples

Units manipulation examples

NDDataset coordinates example

NDDataset coordinates example

NDDataset creation and plotting example

NDDataset creation and plotting example

NDDataset baseline correction

NDDataset baseline correction

Exponential window multiplication

Exponential window multiplication

Sine bell and squared Sine bell window multiplication

Sine bell and squared Sine bell window multiplication

Loading Bruker OPUS files

Loading Bruker OPUS files

Loading RAMAN experimental file

Loading RAMAN experimental file