from
bokeh.plotting
import
figure, show
currentList
=
[
1
,
2
,
3
,
4
,
5
]
List1
=
[i
*
2
for
i
in
currentList]
List2
=
[i
+
2
for
i
in
currentList]
plots
=
figure(title
=
"Legend Customization"
)
line
=
plots.line(currentList,
List1,
legend_label
=
"Arrays ."
,
line_color
=
"blue"
,
line_width
=
2
)
circle
=
plots.circle(
currentList,
List2,
legend_label
=
"List"
,
fill_color
=
"black"
,
fill_alpha
=
0.5
,
line_color
=
"blue"
,
size
=
40
,
)
plots.legend.location
=
"top_left"
plots.legend.title
=
"Observation of plot"
plots.legend.label_text_font
=
"times"
plots.legend.label_text_font_style
=
"bold"
plots.legend.label_text_color
=
"black"
plots.legend.border_line_width
=
9
plots.legend.border_line_color
=
"green"
plots.legend.border_line_alpha
=
0.7
plots.legend.background_fill_color
=
"magenta"
plots.legend.background_fill_alpha
=
0.2
show(plots)