matplotlib.pyplot中add_subplot方法参数111的含义
来源:互联网 发布:恒腾网络 被抛弃了 编辑:程序博客网 时间:2024/06/07 14:23
这里默认已经安装Python及已安装matplotlib、numpy、scipy、six等库
>引自:http://www.codeweblog.com/matplotlib-pyplot中add_subplot方法参数111的含义/
#引入对应的库函数import matplotlib.pyplot as pltfrom numpy import *#绘图fig = plt.figure()ax = fig.add_subplot(349)ax.plot(x,y)plt.show()
其中,参数349的意思是:将画布分割成3行4列,图像画在从左到右从上到下的第9块,如下图:
那第十块怎么办,3410是不行的,可以用另一种方式(3,4,10)。
如果一块画布中要显示多个图怎么处理?
import matplotlib.pyplot as pltfrom numpy import *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()
0 0
- matplotlib.pyplot中add_subplot方法参数111的含义
- matplotlib.pyplot中add_subplot方法参数111的含义
- matplotlib.pyplot中add_subplot方法参数111的含义
- matplotlib.pyplot中add_subplot方法参数111的含义
- matplotlib.pyplot中add_subplot方法参数111的含义
- Python:matplotlib中pyplot的使用方法
- matplotlib.pyplot.plot()参数详解
- matplotlib.pyplot.plot()参数详解
- matplotlib之pyplot中ylabel和xlabel方法详解
- Matplotlib.pyplot中subplot详解
- Python篇(二):matplotlib中pyplot的使用简介
- matplotlib.pyplot
- matplotlib.pyplot
- Matplotlib.pyplot 常用方法(一)
- Matplotlib.pyplot 常用方法(二)
- jquery中position方法参数的含义
- Service 中onStartCommand方法参数的含义
- 二、Matplotlib系列---pyplot的plot( )函数
- 无向图的邻接矩阵
- C++常成员函数
- hadoop中datanode无法启动
- Android 返回上一个(指定)Activity
- Hello World
- matplotlib.pyplot中add_subplot方法参数111的含义
- 【SHELL】统计Nginx访问日志状态码
- 自动显示与隐藏布局的ListView
- 查找C语言头文件、库文件路径的书写格式
- 关于有偿提供拼图响应式后台的通知
- My Chief My Regiment(最后续语)
- scala的Eclpise开发和helloworld
- Python入门: 九九乘法表及改进
- 项目部署、配置、查错常用到的Linux命令