Matplotlib:阴影区域¶
日期 | 2007-12-06(最后修改),2007-12-06(创建) |
---|
使用 fill 函数创建任何颜色色调的阴影区域。以下是一个示例。
In [1]
from pylab import *
x = arange(10)
y = x
# Plot junk and then a filled region
plot(x, y)
# Make a blue box that is somewhat see-through
# and has a red border.
# WARNING: alpha doesn't work in postscript output....
fill([3,4,4,3], [2,2,4,4], 'b', alpha=0.2, edgecolor='r')
Out[1]
章节作者:jesrl
附件