p中的Python轴名称

2024-06-16 09:32:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我能为axis更改签名位置吗?比如把它们写在轴的末端?而不是写另一个铭文? 现在我有了 enter image description here

我在密码里写下了这些铭文

plt.plot(dataX, dataY)
plt.xlabel('f, Hz')
plt.ylabel('N')
plt.savefig(pathForNewGraphDir + "\\" + shortFileName + "_" + str(i) + "_.png")

但我需要enter image description here

谢谢你


Tags: 密码plotpngplthzstraxissavefig