gemseo / post / dataset

Show inherited members

factory module

A factory of dataset plot.

class gemseo.post.dataset.factory.DatasetPlotFactory[source]

Bases: BaseFactory[DatasetPlot]

A factory of dataset plot.

Return type:

Any

create(plot_name, dataset, **options)[source]

Create a plot for dataset.

Parameters:
  • plot_name (str) – The name of a plot method for dataset (its class name).

  • dataset (Dataset) – The dataset to visualize.

  • **options (Any) – The additional options specific to this plot method.

Returns:

A plot method built from the provided dataset.

Raises:

TypeError – If the class cannot be instantiated.

Return type:

DatasetPlot

failed_imports: dict[str, str]

The class names bound to the import errors.

property plots: list[str]

The available plot methods for dataset.