bencher.results.holoview_results.scatter_result

Classes

ScatterResult

A class for creating scatter plots from benchmark results.

Module Contents

class bencher.results.holoview_results.scatter_result.ScatterResult(bench_cfg: bencher.bench_cfg.BenchCfg)

Bases: bencher.results.holoview_results.holoview_result.HoloviewResult

A class for creating scatter plots from benchmark results.

Scatter plots are useful for visualizing the distribution of individual data points and identifying patterns, clusters, or outliers. This class generates scatter plots that can be grouped by categorical variables.

to_plot(**kwargs) panel.panel | None

Creates a scatter plot. See to_scatter for parameters.

to_scatter(result_var: param.Parameter | None = None, override: bool = True, **kwargs) panel.panel | None

Creates a standard scatter plot from benchmark data.

Parameters:
  • result_var (Parameter, optional) – The result variable to plot.

  • override (bool, optional) – Whether to override filter restrictions. Defaults to True.

  • **kwargs – Additional keyword arguments passed to the scatter plot options.

Returns:

A panel containing the scatter plot, or filter match results.

Return type:

pn.panel | None

_to_scatter_ds(dataset: xarray.Dataset, result_var: param.Parameter, **kwargs) panel.panel | None

Creates a scatter plot from the provided dataset.

Parameters:
  • dataset (xr.Dataset) – The dataset containing benchmark results.

  • result_var (Parameter) – The result variable to plot.

  • **kwargs – Additional keyword arguments passed to the scatter plot.

Returns:

A scatter plot visualization.

Return type:

pn.panel | None