Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeping ordering coefficients from report runcard #115

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

jacoterh
Copy link
Collaborator

This PR gives the user more flexibility on the ordering of the coefficients in the barplots (coefficient_bar, coefficient_central, coefficient_pull). Before, the coefficients and groups (4H, 2FB, etc) were ordered alphabetically, which is often not what we want. Instead this PR keeps the ordering as specified in the report runcard, e.g.

coeff_info:
  4H: [
    [OQQ1, "$c_{QQ}^{1}$"],
    [OQQ8, "$c_{QQ}^{8}$"],
    [OQt1, "$c_{Qt}^{1}$"],
    [.... ],
  2L2H: [ 
     [....],
    ]

plots from top to bottom, the 4H starting with OQQ1, the 2L2H, etc..

In terms of plots this means,

this PR:
coefficient_bar

main:
coefficient_bar

I have also repositioned the legend.

Copy link
Collaborator

@LucaMantani LucaMantani left a comment

Choose a reason for hiding this comment

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

Looks good and it's a nice control to have!

@jacoterh jacoterh merged commit 4de7005 into main Jan 21, 2025
5 checks passed
@jacoterh jacoterh deleted the ordering_coeff_plots branch January 21, 2025 13:10
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.

2 participants