from
bokeh.plotting
import
figure, output_file, show
output_file("gfg.html")
graph
=
figure(title
=
"Bokeh Diamond Cross Graph")
graph.xaxis.axis_label
=
"x
-
axis"
graph.yaxis.axis_label
=
"y
-
axis"
x
=
[
-
5
,
-
4
,
-
3
,
-
2
,
-
1
,
0
,
1
,
2
,
3
,
4
,
5
]
y
=
[i
*
*
2
for
i
in
x]
size
=
[i
*
2
for
i
in
y]
angle
=
10
fill_color
=
None
line_color
=
"red"
line_dash
=
"dotted"
line_dash_offset
=
1
line_width
=
10
legend_label
=
"Sample Dashes"
graph.diamond_cross(x, y,
size
=
size,
angle
=
angle,
fill_color
=
fill_color,
line_color
=
line_color,
line_dash
=
line_dash,
line_dash_offset
=
line_dash_offset,
line_width
=
line_width,
legend_label
=
legend_label)
show(graph)