Bokeh绘图数据不起作用

时间:2015-10-23 18:01:45

标签: python python-2.7 plot bokeh

我想用散景来绘制像THIS这样的文件。我尝试导入以下软件包,但它不起作用:

在我的py文件中:

import bokeh
from bokeh.plotting import figure, output_notebook, show, legend
output_notebook()

错误:

 File "plot.py", line 4
        from bokeh.plotting import figure, output_notebook, show, legend, output_notebook()
                                                                                         ^
    SyntaxError: invalid syntax
    ubuntu@ubuntu:~$ sudo python plot.py
    Traceback (most recent call last):
      File "plot.py", line 4, in <module>
        from bokeh.plotting import figure, output_notebook, show, legend
    ImportError: cannot import name legend

0 个答案:

没有答案