from __future__ import annotations

from gemseo import configure_logger
from gemseo.datasets.dataset import Dataset
from import BarPlot
from numpy import array

<RootLogger root (INFO)>

Build a dataset

dataset = Dataset()
dataset.add_variable("x1", array([[0.25, 0.35], [0.75, 0.85]]))
dataset.add_variable("x2", array([[0.5], [0.5]]))
dataset.add_variable("x3", array([[0.75], [0.25]]))
dataset.row_names = ["series_1", "series_2"]
/home/docs/checkouts/ UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see
  dataset.row_names = ["series_1", "series_2"]

Plot the two series on a radar chart

We can use the BarPlot plot

plot = BarPlot(dataset, n_digits=2)
plot.colormap = "PiYG"
plot.execute(save=False, show=True)
plot bars
[<Figure size 640x480 with 1 Axes>]

Total running time of the script: ( 0 minutes 0.161 seconds)

Gallery generated by Sphinx-Gallery