【发布时间】:2011-12-28 04:19:50
【问题描述】:
是否可以孵化 PolyCollection 实例? 我想从 fill_betweenx 返回一个 PolyCollection。
import matplotlib.mlab as mlab
from matplotlib.pyplot import figure, show
import numpy as np
x = np.arange(0.0, 2, 0.01)
y1 = np.sin(2*np.pi*x)
y2 = 1.2*np.sin(4*np.pi*x)
fig = figure()
ax1 = fig.add_subplot(111)
PC = ax1.fill_betweenx(x, 0, y1)
# I want to do something like this
# PC.set_hatch('\')
# but there is no such method
show()
【问题讨论】:
标签: python matplotlib