Visualization#

Module for the plotting of functional data.

This module is used to create plot of diverse type of functional data. Currently, there is an implementation for dense and irregular functional data.

FDApy.visualization.plot.plot(data: DenseFunctionalData | IrregularFunctionalData, labels: ndarray[Any, dtype[float64]] | None = None, colors: ndarray[Any, dtype[float64]] | None = None, ax: Axes | None = None, **plt_kwargs) Axes#

Plot function for univariate functional data.

Generic plot function for DenseFunctionalData and IrregularFunctionalData objects.

Parameters:
data: Union[DenseFunctionalData, IrregularFunctionalData]

The object to plot.

labels: Optional[npt.NDArray[np.float64]], default=None

The labels of each curve.

colors: Optional[npt.NDArray[np.float64]], default=None

Colors used for the plot. If colors is None, it uses the jet colormaps from the matplotlib library by default.

ax: Optional[Axes]

Axes object onto which the objects are plotted.

**plt_kwargs:

Keywords plotting arguments

Returns:
Axes

Axes objects onto the plot is done.

FDApy.visualization.plot.plot_multivariate(data: MultivariateFunctionalData, labels: ndarray[Any, dtype[float64]] | None = None, titles: List[str] | None = None, colors: ndarray[Any, dtype[float64]] | None = None, ax: Axes | None = None, **plt_kwargs) List[Axes]#

Plot function for multivariate functional data.

Generic plot function for MultivariateFunctionalData objects.

Parameters:
data: MultivariateFunctional

The object to plot.

labels: Optional[npt.NDArray[np.float64]], default=None

The labels of each curve.

titles: Optional[List[np.str_]], default=None

Titles of the subfigure.

colors: Optional[npt.NDArray[np.float64]], default=None

Colors used for the plot. If colors is None, it uses the jet colormaps from the matplotlib library by default.

ax: Optional[Axes]

Axes object onto which the objects are plotted.

**plt_kwargs:

Keywords plotting arguments

Returns:
List[Axes]

Axes objects onto the plot is done.