-
Notifications
You must be signed in to change notification settings - Fork 445
Add scalloped path effect #2992
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
Conversation
|
@nawendt I took a bit this afternoon to reconcile your changes with the final product in #2420 and rebase on main in d209f35. I'll be glad to push that up here, but please take a look first and make sure the changes are in line with your view of your contribution. Note I haven't done any other review of functionality yet. Thanks again for this hard work! |
|
I do not see any issues. |
d209f35 to
39b9323
Compare
|
Alright, rebased and cleaned up. @nawendt be sure to stash any local changes and pull this branch first before responding to reviews or any other changes. Thanks again! |
ab5c82f to
5dc9d57
Compare
This commit adds a path effect to make lines drawn appear to be scalloped. This was based off of modifying the matplotlib TickedStroke path effect. This style of line is often used for highlighting areas in SPC MCD products. Places it in metpy.plots.patheffects module with patches for versions of matplotlib < 3.2 in the metpy.plots._mpl module. wrong test return
Removed `withScallopedStroke` as this only added the original path to the plot. It is unlikely users will want this for this style of line. This also negates the need for the `_mpl._subclass_with_normal` monkey patch. Improved handling of control points at the end point of the path. The unit tangent vector is calculated based on if the path is a closed polygon or not. Tests were updated/added for these scenarios.
Reconcile changes in patheffects.py and test_patheffects.py after Unidata#2420. Also remove Matplotlib<3.3.0 considerations and satisfy the lint robots.
5dc9d57 to
2874206
Compare
dopplershift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, pending CI being happy. Thanks @nawendt !
This is a continuation of #1609 due to some git/github oddities.
This commit adds a path effect to make lines drawn appear to be
scalloped. This was based off of modifying the matplotlib
TickedStroke path effect. This style of line is often used for
highlighting areas in SPC MCD products.