![](/img/trans.png)
[英]I want to swap x-axis and y-axis and change this graph to horizontal graph python
[英]python pandas: how to switch x-axis with y-axis for a line graph
在绘图之前尝试转置 DataFrame:
data.set_index('Branch').T.plot()
plt.show()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.