FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FIX: colorbar re-check norm before draw for autolabels by jklymak · Pull Request #12159 · matplotlib/matplotlib · GitHub

Repository navigation

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

Merged
dstansby merged 2 commits into
matplotlib:masterfrom
jklymak:fix-check-norm-autolabels
Oct 17, 2018
Merged

dstansby merged 2 commits into
matplotlib:masterfrom
jklymak:fix-check-norm-autolabels

Conversation

jklymak commented Sep 18, 2018

Copy link
Copy Markdown
Member

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 added this to the v3.0.x milestone Sep 18, 2018

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

tacaswell 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

modulo a rebase and tests passing.

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 force-pushed the fix-check-norm-autolabels branch from a4e33cf to 3add532 Compare October 15, 2018 20:02
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL