gemseo /
post /
datasetShow inherited members
factory module
A factory to create instances of DatasetPlot
.
The module factory
contains the DatasetPlotFactory
class which is a factory to instantiate a DatasetPlot
from its class name. The
class can be internal to GEMSEO or located in an external module whose path is provided to
the constructor. It also provides a list of available cache types and allows you to test
if a cache type is available.
-
class gemseo.post.dataset.factory.DatasetPlotFactory[source]
Bases: BaseFactory
This factory instantiates a DatasetPlot
from its class name.
- Return type:
BaseFactory
-
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 – The arguments to be passed to the class constructor.
- 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.