Skip to content

FIX: colorbar re-check norm before draw for autolabels #12159

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 2 commits into from
Oct 17, 2018

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Sep 18, 2018

PR Summary

closes #12155

If a user changes the norm on a colorbar from a linear to logarithmic, we were not changing the scale of the colorbar axes to a logarithmic scale. That needs to be done after #9903 because we now use normal locators for colorbar axes.

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

@jklymak jklymak added this to the v3.0.x milestone Sep 18, 2018
@ImportanceOfBeingErnest
Copy link
Member

If config_axis is now called within draw_all, one can get rid of it inside of __init__

self.config_axis()
self.draw_all()

and update_bruteforce I guess

self.config_axis()
self.draw_all()

@jklymak jklymak force-pushed the fix-check-norm-autolabels branch 2 times, most recently from 0efbd3a to e10954c Compare September 19, 2018 02:30
@jklymak jklymak force-pushed the fix-check-norm-autolabels branch 2 times, most recently from e891183 to 6e34845 Compare September 20, 2018 17:53
@jklymak jklymak requested a review from efiring September 24, 2018 19:11
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

modulo a rebase and tests passing.

@jklymak jklymak force-pushed the fix-check-norm-autolabels branch 2 times, most recently from cda498c to a4e33cf Compare October 15, 2018 19:47
FIX: properly set x/y limits

MNT: add tolerance to colorbar locator methods
@jklymak jklymak force-pushed the fix-check-norm-autolabels branch from a4e33cf to 3add532 Compare October 15, 2018 20:02
@dstansby dstansby merged commit 97a580c into matplotlib:master Oct 17, 2018
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 17, 2018
dstansby added a commit that referenced this pull request Oct 17, 2018
…159-on-v3.0.x

Backport PR #12159 on branch v3.0.x (FIX: colorbar re-check norm before draw for autolabels)
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.

Incorrect placement of Colorbar ticks using LogNorm
4 participants