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

[BUGFIX] Reenable legend plotting on WindRose #1028

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

misi9170
Copy link
Collaborator

As discussed in #1023 , #969 introduced a breaking change to the .plot() method on WindRose and WindTIRose (this was also noted in #969's discussion at the time).

This PR uses a try/except structure to first try plotting with a colorbar, as introduced in #969, but reverts to the original legend plot if the colorbar plotting fails.

To test this functionality, try using "title" instead of "label" as one of the keys to the legend_kwargs argument to WindRose.plot() (for instance, here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant