pandas Seaborn 热图未显示所有 xticks 和 yticks
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/50754471/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Seaborn heatmap not displaying all xticks and yticks
提问by vaibhavk
I have a pandas dataframe of shape (39, 67). When I plot it's seaborn
heatmap, I don't get as many labels on the X and Y axes. .get_xticklabels()
method also returns only 23 labels.
我有一个形状为 (39, 67) 的Pandas数据框。当我绘制它的seaborn
热图时,我在 X 和 Y 轴上没有得到那么多标签。.get_xticklabels()
方法也只返回 23 个标签。
matplotlib
doesn't show any labels (only numbers) as well.
matplotlib
也不显示任何标签(仅数字)。
Both these heatmaps are for the same dataframe (39, 67).
这两个热图都针对同一个数据帧 (39, 67)。