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 option to specify radius steps #157

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sspagnol
Copy link
Contributor

Allow user to specify the steps at which radius circles and labels will be drawn as, and also sets the rmax value to be a multiple of rstep. So for example a call to plot_windrose(t, r, kind='bar', normed=True, blowto=False, rstep=5) will generate radii/labels of 5,10,15 etc. I don't know if this the best way to achieve this (that is should this be part of WindroseAxes constructor or just passed around in kwargs?), it just worked for my use case.

@scls19fr
Copy link
Member

Thanks for this PR but it's generaly a best practice to first open an issue to explain the problem.
Then, create a PR which fix it (writing Closes #xyz where xyz is the number of issue)

sspagnol and others added 2 commits September 21, 2022 13:10
Allow user to specify the steps at which radius circles and labels will be drawn as, and also sets the rmax value to be a multiple of rstep. So for example a call to plot_windrose(t, r, kind='bar', normed=True, blowto=False, rstep=5) will generate radii/labels of 5,10,15 etc. I don't know if this the best way to achieve this (that is should this be part of WindroseAxes constructor or just passed around in kwargs?), it just worked for my use case.
@ocefpaf
Copy link
Collaborator

ocefpaf commented Sep 21, 2022

@sspagnol do you want to continue working in this? If so note that I rebased against our latest code tests. We need a test for this functionality and, if you can, add means for folks accessing it via the various plotting options.

@simonweppe
Copy link

Would be great to have that as an option @ocefpaf !

@ocefpaf
Copy link
Collaborator

ocefpaf commented Jun 12, 2023

@simonweppe it seems that this PR is abandoned and needs some work/rebasing. Do you want to pick it up?

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.

None yet

4 participants