https://morvanzhou.github.io/tutorials/data-manipulation/plt/4-1-subpot1/

import matplotlib.pyplot as plt
plt.figure()

#小图1
#plt.subplot(2,2,1)
plt.subplot(2,1,1)
plt.plot([0,1],[0,1])
#图2
#plt.subplot(2,2,2)
plt.subplot(2,3,4)
plt.plot([0,1],[0,2])
#图3
#plt.subplot(2,3,3)
plt.subplot(2,3,5)
plt.plot([0,1],[0,3])
#图4
#plt.subplot(2,3,4)
plt.subplot(2,3,6)
plt.plot([0,1],[0,4])
plt.show()
Subplot 多合一显示

相关文章:

  • 2022-01-11
  • 2021-09-21
  • 2022-01-19
  • 2021-05-24
  • 2021-10-12
  • 2022-12-23
  • 2021-09-25
  • 2021-12-23
猜你喜欢
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案