美文网首页
matplotlib 多合一显示

matplotlib 多合一显示

作者: Do_More | 来源:发表于2017-07-19 09:15 被阅读0次
image.png
import matplotlib.pyplot as plt

plt.figure()

plt.subplot(2,1,1)
plt.plot([0,1],[0,1])

plt.subplot(2,3,4)
plt.plot([0,1],[0,2])

plt.subplot(2,3,5)
plt.plot([0,1],[0,3])

plt.subplot(2,3,6)
plt.plot([0,1],[0,4])

plt.show()

相关文章

网友评论

      本文标题:matplotlib 多合一显示

      本文链接:https://www.haomeiwen.com/subject/oqnkkxtx.html