gemseo.post.dataset.curves module#
Draw curves from a Dataset
.
A Curves
plot represents samples of a functional variable
\(y(x)\) discretized over a 1D mesh. Both evaluations of \(y\)
and mesh are stored in a Dataset
, \(y\) as a parameter
and the mesh as a misc.
- class Curves(dataset, mesh, variable, samples=())[source]#
Bases:
DatasetPlot
Plot curves y_i over the mesh x.
- Parameters:
dataset (Dataset) -- The dataset containing the data to plot.
mesh (str) -- The name of the dataset misc corresponding to the mesh.
variable (str) -- The name of the variable for the x-axis.
samples (Sequence[int]) --
The indices of the samples to plot. If empty, plot all the samples.
By default it is set to ().
- Raises:
ValueError -- If the dataset is empty.