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") 
fmt parameter heatmap additional clustermap kwargs passed through main heatmap.
Comments
Post a Comment