spectrochempy.plot

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