Skip to content

colorbar(label=None) should give an empty label #14660

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
Jul 23, 2019

Conversation

timhoffm
Copy link
Member

PR Summary

Fixes #14563.

Instead of coercing None to '' directly as in #10392, I'm just passing it on unchanged to the respective axis label and let it handle it. This way, colorbar will behave the same also in case we the axes label implementation will change in the future.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant

@jklymak jklymak merged commit 33376e9 into matplotlib:master Jul 23, 2019
@timhoffm timhoffm deleted the colorbar-label-none branch July 23, 2019 00:13
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.

colorbar label prints "None" when label=None
4 participants