- plt.figure
参数 | 描述 |
---|---|
num | 图像的标识符 |
figsize | 图像的大小(w=6.4, h=4.8) |
创建一个新图或者激活一个现有图(num参数指定图)
- plt.xlim(*args, **kwargs)
获得或者设置图片的x轴界限
left, right = xlim() # return the current xlim
xlim((left, right)) # set the xlim to left, right
xlim(left, right) # set the xlim to left, right
- plt.xticks
参数 | 描述 |
---|---|
ticks | x的新坐标,类型为数组 |
labels | 对应坐标的标签 |
例如:
x = np