python热图:集中值和y轴

python热图:集中值和y轴,python,seaborn,heatmap,Python,Seaborn,Heatmap,使用seaborn的热图,我想集中两个:图表上的值和y轴值。谢谢你给我的建议 import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt test=np.matrix('10000 20000;30000 40000') df_cm = pd.DataFrame(test, index = [i for i in "01"], columns =

使用seaborn的热图,我想集中两个:图表上的值和y轴值。谢谢你给我的建议

import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

test=np.matrix('10000 20000;30000 40000')

df_cm = pd.DataFrame(test, index = [i for i in "01"], columns = [i for i in "01"])
plt.figure(figsize = (5,3))
cf_heatmap=sns.heatmap(test, annot=True, fmt='n', annot_kws={"size":12}, linewidths=.5, vmin=0,vmax=50000, center=False, cmap='RdBu_r').set(title='TITLE')
plt.ylabel('fff')
plt.xlabel('yyy')

您能解释一下,“图表”和“y”轴的集中值是什么意思吗?您使用的是什么版本的matplotlib?您的代码生成。您希望有什么不同?您能解释一下,“图表”和“y”轴的集中值是什么意思吗?您使用的matplotlib版本是什么?您的代码生成。你想要什么不同?