matplotlib 3.5.1

ParametersBackRef
detrend(x, key=None, axis=None)

Parameters

x : array or sequence

Array or sequence containing the data.

key : {'default', 'constant', 'mean', 'linear', 'none'} or function

The detrending algorithm to use. 'default', 'mean', and 'constant' are the same as detrend_mean . 'linear' is the same as detrend_linear . 'none' is the same as detrend_none . The default is 'mean'. See the corresponding functions for more details regarding the algorithms. Can also be a function that carries out the detrend operation.

axis : int

The axis along which to do the detrending.

Return x with its trend removed.

See Also

detrend_linear

Implementation of the 'linear' algorithm.

detrend_mean

Implementation of the 'mean' algorithm.

detrend_none

Implementation of the 'none' algorithm.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.mlab.detrend_mean matplotlib.mlab.detrend_none matplotlib.mlab matplotlib.mlab.detrend_linear

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/mlab.py#85
type: <class 'function'>
Commit: