fill_between.py
来自「非原创。很好的python例子」· Python 代码 · 共 17 行
PY
17 行
#!/usr/bin/env pythonfrom pylab import *x1 = arange(0, 2, 0.01)y1 = sin(2*pi*x1)y2 = sin(4*pi*x1) + 2# reverse x and y2 so the polygon fills in orderx = concatenate( (x1,x1[::-1]) )y = concatenate( (y1,y2[::-1]) ) p = fill(x, y, facecolor='g')setp(p, alpha=0.5)show()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?