gemseo / post

Show inherited members

para_coord module

A parallel coordinates plot of functions and x.

class gemseo.post.para_coord.ParallelCoordinates(opt_problem)[source]

Bases: OptPostProcessor

Parallel coordinates plot.

Parameters:

opt_problem (OptimizationProblem) – The optimization problem to be post-processed.

Raises:

ValueError – If the JSON grammar file for the options of the post-processor does not exist.

classmethod parallel_coordinates(y_data, x_names, color_criteria)[source]

Plot the parallel coordinates.

Parameters:
  • y_data (ndarray) – The lines data to plot.

  • x_names (Sequence[str]) – The names of the abscissa.

  • color_criteria (Sequence[float]) – The values of same length as y_data to colorize the lines.

Return type:

Figure

DEFAULT_FIG_SIZE = (10.0, 5.0)

The default width and height of the figure, in inches.

database: Database

The database generated by the optimization problem.

materials_for_plotting: dict[Any, Any]

The materials to eventually rebuild the plot in another framework.

opt_problem: OptimizationProblem

The optimization problem.