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

Fix inversion of 3d axis. #14579

Merged
merged 1 commit into from Jun 25, 2019
Merged

Fix inversion of 3d axis. #14579

merged 1 commit into from Jun 25, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jun 19, 2019

... which was broken because 3d axises stored and accessed their viewlim
info sometimes in xy_viewLim/zz_viewLim and sometimes in v_interval (and
likewise for datalim), leading to out-of-sync info...

Not deprecating d_interval/v_interval for now both because this needs to
go to 3.1.1 to fix the breakage and because I think storing the info in
axis attributes actually makes more sense than in viewLim/dataLim --
but fully switching to d_interval/v_interval needs bigger surgery.

Closes #14577.

edit: now with tests.

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

@anntzer anntzer added topic: mplot3d Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labels Jun 19, 2019
@anntzer anntzer added this to the v3.1.1 milestone Jun 19, 2019
... which was broken because 3d axises stored and accessed their viewlim
info sometimes in xy_viewLim/zz_viewLim and sometimes in v_interval (and
likewise for datalim), leading to out-of-sync info...

Not deprecating d_interval/v_interval for now both because this needs to
go to 3.1.1 to fix the breakage and because I think storing the info in
axis attributes actually makes *more* sense than in viewLim/dataLim --
but fully switching to d_interval/v_interval needs bigger surgery.
@ivanov ivanov merged commit c8b6105 into matplotlib:master Jun 25, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 25, 2019
ivanov added a commit that referenced this pull request Jun 25, 2019
…579-on-v3.1.x

Backport PR #14579 on branch v3.1.x (Fix inversion of 3d axis.)
@anntzer anntzer deleted the 3dinvert branch June 25, 2019 06:07
@timhoffm timhoffm mentioned this pull request Dec 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: mplot3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling invert_yaxis() on a 3D plot has either no effect or removes ticks
5 participants