python - How to avoid scientific notation when annotating a seaborn clustermap? -


i have dataframe contains percentages. if use seaborn make clusterplot somehow number 100 plotted 1+e01.

is there way avoid this?

i tried rounding percentages before plotting them, not affect plot.

use fmt="d", in this example:

import seaborn sns sns.set()  flights_long = sns.load_dataset("flights") flights = flights_long.pivot("month", "year", "passengers") flights = flights.reindex(flights_long.iloc[:12].month)  sns.heatmap(flights, annot=true, fmt="d") 

enter image description here

fmt parameter heatmap additional clustermap kwargs passed through main heatmap.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -