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

extend declarative colorbar functionality #3181

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Sep 6, 2023

Description Of Changes

This PR addresses the lack of ability to control the colorbar that was brought up in Issue #2746

With this PR, the colorbar trait can be set with a string giving the orientation of the colorbar and using our predefined values for aspect and pad OR a user can set the trait to a dictionary of Matplotlib colorbar kwargs to have more control.

Checklist

  • Tests added
  • Fully documented

@kgoebber kgoebber requested a review from a team as a code owner September 6, 2023 20:06
@kgoebber kgoebber requested review from dcamron and removed request for a team September 6, 2023 20:06
Copy link
Member

@dcamron dcamron left a comment

Choose a reason for hiding this comment

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

I wish this could mirror your additions proposed in #3183, but since we already have a public colorbar trait (as opposed to eg colorbar_orientation), I suppose it wouldn't make much sense to add in a colorbar_args. I think this is the best solution contained within the existing colorbar trait. I'll wait briefly for other input from yourself or others before I kick this in. Thanks!

@dcamron dcamron merged commit bdc5250 into Unidata:main Sep 18, 2023
25 checks passed
@github-actions github-actions bot added this to the September 2023 milestone Sep 18, 2023
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