Python中使用"subplot"在一张画布上显示多张图
2024-10-19 11:45:47
subplot(arg1, arg2, arg3)
arg1
: 在垂直方向同时画几张图
arg2
: 在水平方向同时画几张图
arg3
: 当前命令修改的是第几张图
t = np.arange(0,5,0.1)
y1 = np.sin(2*np.pi*t)
y2 = np.sin(2*np.pi*t)
plt.subplot(211)
plt.plot(t,y1,'b-.')
plt.subplot(212)
plt.plot(t,y2,'r--')
plt.show()
最新文章
- eclipse中搭建svn开发管理环境
- (转)Linux NFS服务器的安装与配置
- App开放接口api安全性的设计与实现
- React 随笔二
- SVM支持向量机的高维映射与核函数-记录毕业论文2
- 数据库操作(C#)
- ios9 之后,Xcode7不推荐使用UIAlertView,改用UIAlertController+UIAlertAction(按钮)
- [Effective Modern C++] Item 2. Understand auto type deduction - 了解auto类型推断
- Neutron数据库同步错误 NotImplementedError: No support for ALTER of constraints in SQLite dialect
- Sql Server 2008 卸载重新安装失败的解决办法!(多次偿试,方法均有效!)
- install mysql on centos7
- Curl测试socks5 or http 代理命令
- zabbix3.2监控mysql
- addEventListener()方法
- shell 学习笔记一
- 【Skynet】Traceback汇总
- 关于new Handler()与new Handler(Looper.getMainLooper())区别
- java 线程 获取当前线程
- LA3890 Most Distant Point from the Sea
- Java学习第二十二天