from
bokeh.plotting
import
figure, output_file, show
import
numpy as np
output_file(
"gfg.html"
)
graph
=
figure(title
=
"Bokeh Hexagon Bin Graph"
)
x
=
np.array([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
])
y
=
np.array([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
])
graph.hexbin(x, y, size
=
1
)
show(graph)