gemseo / post / dataset

Show inherited members

bars module

Draw a bar plot from a Dataset.

class gemseo.post.dataset.bars.BarPlot(dataset, n_digits=1, annotate=True, annotation_rotation=0.0)[source]

Bases: DatasetPlot

Barplot visualization.

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

  • n_digits (int) –

    The number of digits to print the different bar values.

    By default it is set to 1.

  • annotate (bool) –

    Whether to add annotations of the height value on each bar.

    By default it is set to True.

  • annotation_rotation (float) –

    The angle by which annotations are rotated.

    By default it is set to 0.0.

Raises:

ValueError – If the dataset is empty.

Examples using BarPlot

Bars

Bars