bokeh
[bokeh] 쐐기, 원호 (Wedges, Arcs)
J3SUNG
2020. 10. 5. 06:43
728x90
p = figure(plot_width=400, plot_height=400)
p.arc(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5],
radius=0.4, start_angle=1, end_angle=6, color="skyblue")
show(p)
p = figure(plot_width=400, plot_height=400)
p.wedge(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5],
radius=0.4, start_angle=6, end_angle=1,
color="skyblue", alpha=0.5, direction="clock")
show(p)
p = figure(plot_width=400, plot_height=400)
p.annular_wedge(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5],
inner_radius=0.1, outer_radius=0.2, start_angle=1, end_angle=6,
color="purple", alpha=0.5)
show(p)
p = figure(plot_width=400, plot_height=400)
p.annulus(x=[1, 2, 3, 4, 5], y=[1, 2, 3, 4, 5],
inner_radius=0.1, outer_radius=0.2,
color="red", alpha=0.5)
show(p)
.