11-matplotlib-多图

#!/usr/bin/python
# -*- coding:utf-8 -*-

import numpy as np
import matplotlib.pyplot as plt

# 通过创建多个figure 对象来创建多图
fig1 = plt.figure()
ax1 = fig1.add_subplot(111)
ax1.plot([1,2,3],[3,2,1])

fig2 = plt.figure()
ax2 = fig2.add_subplot(111)
ax2.plot([1,2,3],[2,3,4])

plt.show()

在未来面前,我们永远都是孩子。不断思考,不断学习,才能让我们走的更远。

个人主页:https://www.oceaneyes.cn/

个人学习博客:http://oceaneyes.top/

CSDN:https://blog.csdn.net/qq_16123129 

 长按二维码关注,一起交流学习~~~

发布了41 篇原创文章 · 获赞 33 · 访问量 5470

猜你喜欢

转载自blog.csdn.net/qq_16123129/article/details/88674826