Skip to content

Plotting uncertainty groups and variations as filled bands#118

Merged
lucalavezzo merged 2 commits intoWMass:mainfrom
reimersa:plot_variations_groups
Mar 11, 2026
Merged

Plotting uncertainty groups and variations as filled bands#118
lucalavezzo merged 2 commits intoWMass:mainfrom
reimersa:plot_variations_groups

Conversation

@reimersa
Copy link
Contributor

  • Adds argument to plot grouped variations, just like --varNames but using the group names (e.g., --varGroups resum)
  • Adds option to plot variations as filled bands with customizable opacity
  • Needs Allow alpha to propagate from original handle wums#20 for proper markers in the legends

@cippy
Copy link
Contributor

cippy commented Mar 11, 2026

Is it intended that it only uses global impacts? Usually the code produces nominal impacts by default, unless rabbit_fit is called with --globalImpacts, so the option --computeHistImpacts might not always reflect the intended behaviour (or are both nominal and global uncertainty bands stored?)

@reimersa
Copy link
Contributor Author

In fact --computeHistImpacts of rabbit_fit.py propagates the global impacts, so only those are stored as histograms that can be plotted. This makes sense from a plotting point of view because the error bands will sum up in quadrature to the total uncertainty in the prediction then.

@lucalavezzo
Copy link
Collaborator

lgtm thanks @reimersa

@lucalavezzo lucalavezzo merged commit 9d38f07 into WMass:main Mar 11, 2026
9 checks passed
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.

3 participants