使用d3.js和ipywidgets为jupyter笔记本进行交互式绘图。
bqplot的Python项目详细描述
bqplot
基于交互式jupyter小部件的jupyter笔记本绘图系统。
安装
pip install bqplot
jupyter nbextension enable --py bqplot
用法
frombqplotimportpyplotaspltimportnumpyasnpplt.figure(1)n=200x=np.linspace(0.0,10.0,n)y=np.cumsum(np.random.randn(n))plt.plot(x,y,axes_options={'y':{'grid_lines':'dashed'}})plt.show()