ParametricPlot#

class skfda.exploratory.visualization.ParametricPlot(fdata1, fdata2=None, chart=None, *, fig=None, axes=None, group=None, group_colors=None, group_names=None, legend=False)[source]#

Parametric Plot visualization.

This class contains the functionality in charge of plotting two different functions as coordinates, this can be done giving one FData, with domain 1 and codomain 2, or giving two FData, both of them with domain 1 and codomain 1.

Parameters:
  • fdata1 (FData) – functional data set that we will use for the graph. If it has a dim_codomain = 1, the fdata2 will be needed.

  • fdata2 (FData | None) – optional functional data set, that will be needed if the fdata1 has dim_codomain = 1.

  • chart (Figure | Axes | None) – figure over with the graphs are plotted or axis over where the graphs are plotted. If None and ax is also None, the figure is initialized.

  • fig (Figure | None) – figure over with the graphs are plotted in case ax is not specified. If None and ax is also None, the figure is initialized.

  • ax – axis where the graphs are plotted. If None, see param fig.

  • axes (Axes | None) –

  • group (Sequence[K] | None) –

  • group_colors (Indexable[K, ColorLike] | None) –

  • group_names (Indexable[K, str] | None) –

  • legend (bool) –

Methods

hover(event)

Activate the annotation when hovering a point.

plot()

Plot the object and its data.

hover(event)[source]#

Activate the annotation when hovering a point.

Callback method that activates the annotation when hovering a specific point in a graph. The annotation is a description of the point containing its coordinates.

Parameters:

event (MouseEvent) – event object containing the artist of the point hovered.

Return type:

None

plot()[source]#

Plot the object and its data.

Returns:

figure object in which the displays and

widgets will be plotted.

Return type:

Figure