Skip to content

EverestObjectiveFunctionPlot and EverestControlsPlot improvements#13283

Merged
eilskra merged 2 commits intoequinor:mainfrom
eilskra:plot-improvements
Apr 10, 2026
Merged

EverestObjectiveFunctionPlot and EverestControlsPlot improvements#13283
eilskra merged 2 commits intoequinor:mainfrom
eilskra:plot-improvements

Conversation

@eilskra
Copy link
Copy Markdown
Contributor

@eilskra eilskra commented Apr 9, 2026

Issue
Resolves #13266
Resolves #13265

Approach

Added 4 different line-styles to the EverestControlsPlot, using PlotConfig.getNumberOfColors() to determine when to change line style. Set the LEGEND_THRESHOLD to 5 controls as pr the other plots.
Screenshot 2026-04-09 at 16 23 06
16 controls toggled, 4 different line styles. No legend
Screenshot 2026-04-09 at 16 23 44
5 controls toggled, so legend is showing

Moved nextColor() outside of for-loop for single color(unless number of realizations < 5), but keeps potential future color-palette changes, in ObjectiveFunctionPlot
Screenshot 2026-04-09 at 16 26 29
More than 5 realizations
image
Less than 5 realizations, includes different colors and legend

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

@eilskra eilskra self-assigned this Apr 9, 2026
@eilskra eilskra added the release-notes:improvement Automatically categorise as improvement in release notes label Apr 9, 2026
@eilskra eilskra force-pushed the plot-improvements branch from de963ee to e2d6f7e Compare April 9, 2026 14:55
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.95%. Comparing base (18d2e71) to head (cc76f62).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...tools/plot/plottery/plots/everest_controls_plot.py 0.00% 12 Missing ⚠️
.../plottery/plots/everest_objective_function_plot.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13283      +/-   ##
==========================================
- Coverage   90.00%   89.95%   -0.05%     
==========================================
  Files         457      457              
  Lines       31551    31596      +45     
==========================================
+ Hits        28397    28422      +25     
- Misses       3154     3174      +20     
Flag Coverage Δ
cli-tests 37.46% <0.00%> (+0.03%) ⬆️
fuzz 44.50% <0.00%> (-0.06%) ⬇️
gui-tests 67.10% <0.00%> (-0.07%) ⬇️
performance-and-unit-tests 77.90% <0.00%> (-0.07%) ⬇️
test 46.19% <0.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../plottery/plots/everest_objective_function_plot.py 21.62% <0.00%> (-0.61%) ⬇️
...tools/plot/plottery/plots/everest_controls_plot.py 19.14% <0.00%> (-5.18%) ⬇️

... and 3 files with indirect coverage changes

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 9, 2026

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing eilskra:plot-improvements (cc76f62) with main (7c245db)

Open in CodSpeed

@eilskra eilskra force-pushed the plot-improvements branch from e2d6f7e to e1105b4 Compare April 10, 2026 09:52
@eilskra eilskra force-pushed the plot-improvements branch from e1105b4 to 45e948d Compare April 10, 2026 10:05
@eilskra eilskra force-pushed the plot-improvements branch from 45e948d to cc76f62 Compare April 10, 2026 12:29
Copy link
Copy Markdown
Contributor

@berland berland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicer!

@eilskra eilskra merged commit 0adf103 into equinor:main Apr 10, 2026
87 of 88 checks passed
@eilskra eilskra deleted the plot-improvements branch April 10, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:improvement Automatically categorise as improvement in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Differentiate between lines in Controls Plot Make Objective Function Plot single color

4 participants