Skip to content

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

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:default-rlims
Jan 23, 2020
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:default-rlims

Conversation

@anntzer

@anntzer anntzer commented Jan 23, 2020

Copy link
Copy Markdown
Contributor

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.

@dstansby dstansby left a comment

Copy link
Copy Markdown
Member

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

anntzer commented Jan 23, 2020

Copy link
Copy Markdown
Contributor Author

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