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

Add mpl_args and PlotGeometry stroke_width #3183

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Sep 7, 2023

Description Of Changes

This PR implements a number of improvements to the declarative interface to allow for additional kwargs to alter how a data element is plotted. Primarily this adds a new trait called mpl_args for all declarative plot classes and is designed to be a dictionary of values. Additionally, this PR adds the stroke_width trait for PlotGeometry since it would be a heavily used element that we wish to expose according to issue #2719. This would also allow for more nuanced use of alpha and zorder as discussed in #2746.

Checklist

@kgoebber kgoebber requested a review from a team as a code owner September 7, 2023 23:01
@kgoebber kgoebber requested review from dcamron and removed request for a team September 7, 2023 23:01
tests/plots/test_declarative.py Dismissed Show dismissed Hide dismissed
@dopplershift dopplershift added Type: Enhancement Enhancement to existing functionality Area: Plots Pertains to producing plots labels Oct 18, 2023
Copy link
Member

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Minor typo, but otherwise this looks ready.

src/metpy/plots/declarative.py Outdated Show resolved Hide resolved
@dopplershift dopplershift merged commit bd15585 into Unidata:main Oct 18, 2023
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Plots Pertains to producing plots Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PlotGeometry missing trait for stroke width
2 participants