app.components.plots module
- class app.components.plots.ColorPalette(*values)[source]
Bases:
str,EnumColor palette for plot styling.
- MAIN
Primary color for main plot elements.
- SECONDARY_LIGHT
Light secondary color for backgrounds.
- SECONDARY
Standard secondary color.
- SECONDARY_DARK
Dark secondary color for text and borders.
- MAIN = '#1a5e9a'
- SECONDARY = '#ced4da'
- SECONDARY_DARK = '#495057'
- SECONDARY_LIGHT = '#e6e6e6'
- app.components.plots.plot_best_score_over_iteration(generation_history_scores: Sequence[float]) None[source]
Plot cumulative best score achieved so far across iterations.
Creates a line plot showing the running maximum score, illustrating the improvement trajectory of the optimization process.
- Parameters:
generation_history_scores – Sequence of score values, one per iteration.
- app.components.plots.plot_design_setup() None[source]
Configure matplotlib plot design and styling parameters.
Sets up consistent styling for all plots including fonts, colors, grid, spines, and figure properties using the ColorPalette.
- app.components.plots.plot_relative_score_over_iteration(generation_history_scores: Sequence[float]) None[source]
Plot relative score values normalized to the best score.
Creates a line plot showing how scores change relative to the maximum score achieved, with values ranging from 0 to 1.
- Parameters:
generation_history_scores – Sequence of score values, one per iteration.
- app.components.plots.plot_score_vs_iteration(generation_history_scores: Sequence[float]) None[source]
Plot score values across iterations.
Creates a line plot showing how scores change over iterations, displaying all score values with proper scaling and grid.
- Parameters:
generation_history_scores – Sequence of score values, one per iteration.