【发布时间】:2013-01-24 16:52:01
【问题描述】:
我有这段代码可以创建一个交互式散点图:
if 1: # picking on a scatter plot (matplotlib.collections.RegularPolyCollection)
x, y, c, s = rand(4, 100)
def onpick3(event):
ind = event.ind
print('onpick3 scatter:', ind, np.take(x, ind), np.take(y, ind))
fig = figure()
ax1 = fig.add_subplot(111)
col = ax1.scatter(x, y, 100*s, c, picker=True)
#fig.savefig('pscoll.eps')
fig.canvas.mpl_connect('pick_event', onpick3)
我想做的是把这个图集成到 wxPython 中
我该怎么做?
【问题讨论】:
标签: python matplotlib wxpython