Plotter.generation_scatter

Plotter.generation_scatter(generation_out: List[Dict] | Dict, n_samples: int = 3, downsamp: int = 2, smoothing: float = 1, output_name: str | None = None) Figure | None[source]

Plots the 2D contours of all the selected attributes (= DataObject’s) in the given data block.

Parameters:
  • generation_out (Union[List[Dict], Dict]) – Either the single output of a generation experiment, or a list of outputs of generation experiments.

  • n_samples (int, optional, default=3) – The number of samples to be plotted for each generation experiment, among the top ones.

  • downsamp (int, optional, default=2) – Down-sampling factor for plotting of the contour lines.

  • smoothing (float, optional, default=1) – Smoothing factor between 0 and 1.3 for the contours lines in the contour plot.

  • output_name (str, optional, default=None) – Name of the output file. If None, the name is automatically generated from the data block name.

Returns:

Optional[plotly.graph_objects.Figure] – Plotly figure object, if self.output is None, otherwise None.