2015-06-25 54 views

回答

2

使用fmt="d",如this example

import seaborn as 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

fmtheatmap一個參數,但附加clustermap kwargs通過在主熱圖通過。