Skip to content

Split summary multi plot common legend into color and symbol legends - #15038

Draft
magnesj wants to merge 5 commits into
devfrom
simplify-summary-multiplot-legend
Draft

magnesj wants to merge 5 commits into
devfrom
simplify-summary-multiplot-legend

Conversation

@magnesj

@magnesj magnesj commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Summary

When a summary multi plot uses a common legend, the legend shows one entry per color/symbol combination, e.g. vectors x cases. If the curve color is given by one summary dimension (case, vector or object, e.g. well, group or region) and the curve symbol by another, the common legend is now split into:

  • a color legend, e.g. one entry per vector (vectors sharing a color are combined into one entry, like WOPR, WOPT)
  • a symbol legend, e.g. one entry per case

The dimensions are found from the summary curves (RimPlot::visibleCurvesForLegend()) using RiaSummaryAddressAnalyzer. Qwt legend items are not inspected. Falls back to the existing merged legend for other curve types (e.g. ensembles) or when no color/symbol dimension pair is found.

Also fixes oversized symbols in legend icons: QwtGraphic derives its bounding rect from the painted content, so the bounding rect is now pinned to the full icon size.

Fixes #15050

magnesj added a commit that referenced this pull request Oct 25, 2026
…sion combos

Covers CASE+WELL, VECTOR+CASE and VECTOR+WELL combinations by building plots via new_summary_plot, enabling use_common_legend and verifying curve counts. Also exports snapshots (GUI mode only) for visual verification, confirmed to correctly split into color and symbol legends for all three combinations.
magnesj added a commit that referenced this pull request Oct 25, 2026
Adds CASE+GROUP, VECTOR+GROUP and CASE+REGION scenarios, confirming the OBJECT dimension used for the split legend works for any summary object category (not just wells), as visually verified via exported snapshots.
magnesj added a commit that referenced this pull request Oct 25, 2026
…bols

Pin the icon bounding rect to the full icon size, so symbols drawn smaller than the icon are not rescaled to fill the icon slot.
When the curve color is given by one summary dimension (case, vector or object such as well, group or region) and the curve symbol by another, create one color legend and one symbol legend instead of one entry per color/symbol combination.
Show the color and symbol legends as two widgets below the page title, also when exporting the page. Falls back to the merged legend otherwise.
Test common legend splitting across case, vector, well, group and region dimension combinations.
magnesj added a commit that referenced this pull request Oct 26, 2026
…bols

Pin the icon bounding rect to the full icon size, so symbols drawn smaller than the icon are not rescaled to fill the icon slot.
magnesj added a commit that referenced this pull request Oct 26, 2026
When the curve color is given by one summary dimension (case, vector or object such as well, group or region) and the curve symbol by another, create one color legend and one symbol legend instead of one entry per color/symbol combination.
@magnesj
magnesj force-pushed the simplify-summary-multiplot-legend branch from 50b216f to 7be2f44 Compare October 26, 2026 06:34
magnesj added a commit that referenced this pull request Oct 26, 2026
Show the color and symbol legends as two widgets below the page title, also when exporting the page. Falls back to the merged legend otherwise.
magnesj added a commit that referenced this pull request Oct 26, 2026
Test common legend splitting across case, vector, well, group and region dimension combinations.
@magnesj

magnesj commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Documentation

Page: plot-window/MultiPlots.md

plot-window/SummaryPlotColorAndSymbolLegend.png
With Use Common Legend enabled, one legend is shown above all sub plots. When the curve color is given by one summary dimension (case, vector or object such as well, group or region) and the curve symbol by another, the legend is split into a color legend and a symbol legend, instead of one entry per color and symbol combination.

@magnesj
magnesj force-pushed the simplify-summary-multiplot-legend branch from 4852480 to 3d35a5b Compare October 26, 2026 13:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split summary multi plot common legend into color and symbol legends

1 participant