散景示例不起作用(更新

时间:2016-05-22 20:00:24

标签: python bokeh

我使用的是版本0.11.1(Anaconda2),示例代码不起作用。下面是输出(我尝试使用IPython和Spyder / IPython)

from bokeh.plotting import figure, output_file, show
p = figure(title="line", plot_width=300, plot_height=300)
p.line(x=[1, 2, 3, 4, 5], y=[6, 7, 2, 4, 5])
show(p)
TypeError                                 Traceback (most recent call last)
<ipython-input-1-8baa161d296f> in <module>()
      1 from bokeh.plotting import figure, output_file, show
      2 
----> 3 p = figure(title="line", plot_width=300, plot_height=300)
      4 p.line(x=[1, 2, 3, 4, 5], y=[6, 7, 2, 4, 5])
      5 

**TypeError: figure() takes no arguments (3 given)**

0 个答案:

没有答案