ax = fig.add_subplot(349)
参数349的意思是:将画布分割成3行4列,图像画在从左到右从上到下的第9块
那第十块怎么办,3410是不行的,可以用另一种方式(3,4,10)。
fig = plt.figure()
ax = fig.add_subplot(2,1,1)
ax.plot(x,y)
ax = fig.add_subplot(2,2,3)#重新开始分区,并非从上一处开始
ax.plot(x,y)
plt.show()

matplotlib.pyplot中add_subplot方法参数的含义

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2022-02-23
  • 2021-11-04
  • 2022-12-23
  • 2021-11-07
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2021-05-15
  • 2022-12-23
  • 2021-09-17
  • 2021-06-11
  • 2021-05-21
相关资源
相似解决方案