当我使用散景时:
from bokeh.charts import Scatter, output_file, show
from bokeh.sampledata.autompg import autompg as df
p = Scatter(df, x='mpg', y='hp', title="HP vs MPG",
xlabel="Miles Per Gallon", ylabel="Horsepower")
output_file("scatter.html")
show(p)
我收到以下错误消息,重复数百行:
E-1010 (CDSVIEW_SOURCE_DOESNT_MATCH): CDSView used by Glyph renderer must have a source that matches the Glyph renderer's data source: GlyphRenderer(id='010fe180-6eda-4d68-9821-515356ccbd6a', ...)
有谁知道这里发生了什么?
仅供参考我直接从文档页面复制并粘贴代码:
http://bokeh.pydata.org/en/0.11.0/docs/user_guide/charts.html#histograms