-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Wrong ticks on heatmap colorbar when using fmt=.0% #917
Comments
They're not expected to be; the annotations are just text added to the figure. |
Maybe I am missing something, but are there cases in which it is useful to have the annotations and the colorbar in different formats? As far as I can tel,l they convey the same information, so showing different formats does not seem to be useful. Just for compleness, one can achieve the behaviour I expected with some extra code:
|
Slight correction to this code to function:
|
When using
seaborn.heatmap()
to plot percentages, the heatmap is correctly annotated to show percentages, i.e., it multiplies the number by 100 and displays in fixed ('f') format, followed by a percent sign. However, the format is not applied to the colorbar ticks, which are shown fixed format.Example:
The text was updated successfully, but these errors were encountered: