from
bokeh.plotting
import
figure, output_file, show
output_file(
"gfg.html"
)
graph
=
figure(title
=
"Bokeh Patch Graph"
)
graph.xaxis.axis_label
=
"x-axis"
graph.yaxis.axis_label
=
"y-axis"
x
=
[
0
,
0
,
1
,
1
,
4
,
2
,
8
,
4
]
y
=
[
2.5
,
0.5
,
0.5
,
2.5
,
5
,
9
,
1
,
0
]
color
=
"yellow"
fill_alpha
=
0.5
legend_label
=
"Sample Patch"
graph.patch(x, y,
color
=
color,
fill_alpha
=
fill_alpha,
legend_label
=
legend_label)
show(graph)