gemseo / post / dataset

Show inherited members

lines module

Connect the observations of variables stored in a Dataset with lines.

class gemseo.post.dataset.lines.Lines(dataset, variables=None, abscissa_variable=None, add_markers=False, set_xticks_from_data=False, plot_abscissa_variable=False)[source]

Bases: DatasetPlot

Connect the observations of variables with lines.

Parameters:
  • dataset (Dataset) – The dataset containing the data to plot.

  • variables (Sequence[str] | None) – The names of the variables to plot. If None, use all the variables.

  • abscissa_variable (str | None) – The name of the variable used in abscissa. The observations of the variables are plotted in function of the observations of this abscissa_variable. If None, the observations of the variables are plotted in function of the indices of the observations.

  • add_markers (bool) –

    Whether to mark the observations with dots.

    By default it is set to False.

  • set_xticks_from_data (bool) –

    Whether to use the values of abscissa_variable as locations of abscissa ticks.

    By default it is set to False.

  • plot_abscissa_variable (bool) –

    Whether to plot the abscissa variable.

    By default it is set to False.

Raises:

ValueError – If the dataset is empty.

Examples using Lines

Lines

Lines