gemseo.post.dataset.lines module#

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

class Lines(dataset, variables=(), abscissa_variable='', add_markers=False, set_xticks_from_data=False, use_integer_xticks=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]) --

    The names of the variables to plot. If empty, use all the variables.

    By default it is set to ().

  • abscissa_variable (str) --

    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 empty, the observations of the variables are plotted in function of the indices of the observations.

    By default it is set to "".

  • 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.

  • use_integer_xticks (bool) --

    Whether to use integer xticks.

    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.