5

I use the Bokeh. I like Bokeh very much, Because Bokeh have the many chart and output file is very simple

I work for Semiconductor Corporation, I sometimes analysis the semicon. data.

I have the many data and I make the many chart. may be 1000~4000 chart ops!!!!!

I use the Bokeh for making chart, but bokeh is very slow, I don't why ........

for example, data have 6000 rows, 250 columns (csv format), I want to plot about 250 columns

I use the matplotlib and numpy, source is like this about Bokeh

rect(hist_array[cnt, param_num, 0], \

hist_array[cnt, param_num, 1]/2.0, \
0.01 * (hist_array[cnt, param_num, 0][2] - hist_array[cnt, param_num, 0][1]), \
hist_array[cnt, param_num, 1], \
y_range=Range1d(start=0,end=param_array[param_num, 1][:file_count].max()*1.1), \
x_range=Range1d(start=param_array[param_num, 2][:file_count].min(), end=param_array[param_num, 3][:file_count].max()), \
plot_width=1200, plot_height=400, 
fill_color=colormap[cnt], \
line_color=colormap[cnt], \
#fill_alpha=0.1, \
#line_alpha=0.1, \
legend=file_name[4] + ' ' + tmpIndex[param_cnt])

I don't know why Bokeh is slow, may be 100 sec

4

1 回答 1

5

因为 Bokeh 在浏览器中运行,最终仍然存在来自浏览器和 Javascript 运行时的性能限制。听起来你正在绘制 150 万个点?这不适用于直接嵌入模式。

但是,有一个解决方案:Bokeh 服务器可以自动对某些绘图类型的数据进行下采样,并在浏览器中提供简化版本。当用户随后缩放和平移时,将从服务器检索更多数据。这意味着输出的 HTML 文件将很快启动,而且性能应该非常合理。

目前,下采样服务器不在存储库的主/主分支中,而是在演示分支中。在下一个主要版本中,我们将把这种下采样行为融入主服务器本身。如果您有兴趣使用现有的下采样,请发送电子邮件至 bokeh@continuum.io 的 bokeh 用户列表,我们可以在那里进行对话。

于 2014-03-05T05:40:48.457 回答