If Bokeh has a lot of diagrams, the output file is very heavy and slow.

I use bokeh. I really like Bokeh because Bokeh has a lot of diagrams and the output file is very simple.

I work at Semiconductor Corporation, I sometimes analyze semiconductor. data.

I have a lot of data and I do a lot of diagrams. maybe 1000 ~ 4000 ops diagrams !!!!!

I use Bokeh to create a chart, but bokeh is very slow, I donโ€™t know why ........

for example, the data has 6,000 rows, 250 columns (csv format), I want to build about 250 columns

I use matplotlib and numpy, the source is similar to 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, maybe 100 seconds

+4
source share
1

Bokeh , , Javascript. , 1,5 ? .

: Bokeh , . . , HTML , .

/ , demo. , . , , bokeh bokeh@continuum.io, .

+5

Source: https://habr.com/ru/post/1530146/


All Articles