Skip to content

Don't default to negative radii in polar plot. #16300

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

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 23, 2020

Previously a call to polar() (with no args) would default the rlims to
-0.05, +0.05 (unlike subplot(projection="polar") which would default
the rlims to a more sane (0, 1)). Fix that.

I guess this would be nice for 3.2, but won't insist on it, feel free to milestone as preferred.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Previously a call to `polar()` (with no args) would default the rlims to
-0.05, +0.05 (unlike `subplot(projection="polar")` which would default
the rlims to a more sane (0, 1)).  Fix that.
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Should probably get a what's new entry?

@dstansby dstansby added this to the v3.3.0 milestone Jan 23, 2020
@anntzer
Copy link
Contributor Author

anntzer commented Jan 23, 2020

I think this is closer to a bugfix (back to pre 2.0 behavior). Also if this can make it to 3.2 I guess https://github.com/matplotlib/matplotlib/pull/13980/files#diff-96669b74374a21dbde3b7c470522eebfR23 mostly covers that (even though the internals are different). Actually let's milestone this to 3.2...
Also it's a rather obscure case (this only affects polar plots with no data and created using polar()).

@anntzer anntzer modified the milestones: v3.3.0, v3.2.0 Jan 23, 2020
@jklymak jklymak merged commit 9933e23 into matplotlib:master Jan 23, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jan 23, 2020
@anntzer anntzer deleted the default-rlims branch January 23, 2020 17:23
timhoffm added a commit that referenced this pull request Jan 23, 2020
…300-on-v3.2.x

Backport PR #16300 on branch v3.2.x (Don't default to negative radii in polar plot.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants