Skip to main content

EguiCharts

Trait EguiCharts 

pub trait EguiCharts {
    // Required methods
    fn paint_history(&self, ui: &Ui, rect: Rect);
    fn paint_pareto(&self, ui: &Ui, rect: Rect);
}
Expand description

Paints a StudyObservation with the viewer’s egui charts. Each chart’s geometry is derived on its first paint and kept until an update moves what it plots.

Required Methods§

fn paint_history(&self, ui: &Ui, rect: Rect)

Paints the optimization-history chart (objective values and the best-so-far curve against trial number) into rect.

fn paint_pareto(&self, ui: &Ui, rect: Rect)

Paints the Pareto chart (every trial’s two objective values, with the non-dominated front highlighted) into rect. A study without exactly two objectives shows a note instead.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§