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)
.
'bokeh' 카테고리의 다른 글
[bokeh] 범위 지정 (Setting Ranges) (0) | 2020.10.05 |
---|---|
[bokeh] 도형 결합 (Combining Multiple Glyphs) (0) | 2020.10.05 |
[bokeh] 세그먼트, 광선(Segments, Rays) (0) | 2020.10.05 |
[bokeh] 이미지 (Images) (0) | 2020.10.05 |
[bokeh] 계란형 (Ovals) (0) | 2020.10.05 |