Chinaunix首页 | 论坛 | 博客
  • 博客访问: 224894
  • 博文数量: 59
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 493
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-26 17:46
个人简介

做技术要:鹰击长空,鱼翔浅底。

文章分类

全部博文(59)

文章存档

2017年(1)

2016年(3)

2015年(27)

2014年(28)

分类: Python/Ruby

2014-12-23 14:06:14

from matplotlib.figure import Figure
fig.add_subplot(111) 
# equivalent but more general 
fig.add_subplot(1,1,1)
 # add subplot with red background 
fig.add_subplot(212, axisbg='r') 
figure.add_subplot(338, axisbg='r')
如上所述“111”,"212","338"的含义:
xyz:对fig分割成x行*y列个格,显示在第Z格
英文解释:
These are subplot grid parameters encoded as a single integer.
For example, "111" means "1x1 grid, first subplot" and "234" means "2x3 grid, 4th subplot".
Alternative form for add_subplot(111) is add_subplot(1, 1, 1).




阅读(1289) | 评论(0) | 转发(0) |
0

上一篇:ctypes

下一篇:window下Python安装包大全

给主人留下些什么吧!~~