我有这张桌子:
Wow Bob Class Cook shlook ban
1 2.5 0 0 d 44.0
3 7.5 0 1 f 55.0
5 12.5 0 0 g 56.0
4 10.0 0 1 c 3.0
6 15.0 0 0 esd 323.0
.. ... ... ... ... ... ...
2 14.0 2 1 f NaN
2 15.0 2 1 d 2.0
2 16.0 2 0 d 2.0
2 17.0 2 0 f 2.0
2 18.0 2 1 g NaN
我一直在尝试绘制一个seaborn.pairblot,并使用以下代码将ylables(而不是ticks)点成90度:
for axes in g.axes.flat:
axes.set_ylabel(axes.get_ylabel(), rotation=90, horizontalalignment='left')
plt.show()
如您所见,标签不会旋转。 我该怎么办
谢谢大家!
将旋转设置为0,将ha设置为“右”:
检查matplotlibvignette是一个有用的地方:
相关问题 更多 >
编程相关推荐