我很难为python subplot函数添加参数.
我想要的是使用以下标准在同一图像文件上绘制4个图形
left
space
right
space
left
space
right
Run Code Online (Sandbox Code Playgroud)
我已经尝试了3种数字的不同方式,但输出没有正确显示.
你的意思是这样的吗?
import matplotlib.pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(4,2,1)
ax2 = fig.add_subplot(4,2,4)
ax3 = fig.add_subplot(4,2,5)
ax4 = fig.add_subplot(4,2,8)
fig.subplots_adjust(hspace=1)
plt.show()
Run Code Online (Sandbox Code Playgroud)
