from
bokeh.plotting
import
figure, output_file, show
output_file(
"gfg.html"
)
graph
=
figure(title
=
"Bokeh Dash 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
=
[
25
,
16
,
9
,
4
,
1
,
0
,
1
,
4
,
9
,
16
,
25
]
size
=
20
angle
=
10
line_color
=
"red"
line_dash
=
"dotted"
line_dash_offset
=
1
line_width
=
10
legend_label
=
"Sample Dashes"
graph.dash(x, y,
size
=
size,
angle
=
angle,
line_color
=
line_color,
line_dash
=
line_dash,
line_dash_offset
=
line_dash_offset,
line_width
=
line_width,
legend_label
=
legend_label)
graph.dash(x, y)
show(graph)