gemseo.post.dataset.bars module#
Draw a bar plot from a Dataset
.
- class 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.