SEABORN-如何为不同的图形设置相同的颜色比例?

时间:2020-07-17 10:40:10

标签: python-3.x matplotlib plot seaborn heatmap

我要在同一类型的图中绘制不同的矩阵:

sns.heatmap(df1.to_numpy(), ax=ax1)
sns.heatmap(df2.to_numpy(), ax=ax2)

如何使用Seaborn保持不同图形中的值的相同色阶?另外,我可以切换到matplotlib。

例如:对于第一个图,最大值约为40,比例从10变为40,而从10到35,在第二个图中最大值约为35。如何将40设置为最大比例两个数字的价值?

enter image description here enter image description here

0 个答案:

没有答案
相关问题