python打印奇怪的轴格式

2024-06-28 19:59:15 发布

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

通过使用matplotlib打印,有时我有这种轴格式。值正确(已检查调试),唯一的问题是显示。在

Example

plt.figure(figsize=(8, 8.5))
plt.subplot(311)
plt.plot(t_p, L_p)
plt.title('Lift')
plt.xlabel('Time [s]')
plt.ylabel('Lift [N]')
plt.ylim(min(L_p), max(L_p))
plt.matplotlib.pyplot.tight_layout(pad=1.08, h_pad=None, w_pad=None,rect=None)

谢谢大家的帮助。在


Tags: nonetimeplottitlematplotlib格式pltfigure