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

Merged
merged 1 commit into from
Nov 20, 2024

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).

@misi9170 misi9170 merged commit 93a9cde into NREL:develop Nov 20, 2024
13 checks passed
@misi9170 misi9170 deleted the bugfix/wind-rose-plot branch November 20, 2024 17:27
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.

2 participants