728x90
세그먼트
시작 위치(x0, y0)과 끝 위치(x1, y1)를 지정해줘서 사용합니다
p = figure(plot_width=400, plot_height=400)
p.segment(x0=[1, 2, 3], y0=[1, 2, 3],
x1=[1.5, 2.5, 2.5], y1=[2, 2.5, 4],
color="royalblue", line_width=3)
show(p)
광선
시작 위치 (x, y), length 길이 설정, angle 각도 설정 해서 사용합니다.
p = figure(plot_width=400, plot_height=400)
p.ray(x=[10, 20, 30, 40], y=[10, 20, 30, 40],
length=50, angle=[15, 45, 60, 30],
angle_units="deg", color="orange", line_width=2)
show(p)
.
'bokeh' 카테고리의 다른 글
[bokeh] 도형 결합 (Combining Multiple Glyphs) (0) | 2020.10.05 |
---|---|
[bokeh] 쐐기, 원호 (Wedges, Arcs) (0) | 2020.10.05 |
[bokeh] 이미지 (Images) (0) | 2020.10.05 |
[bokeh] 계란형 (Ovals) (0) | 2020.10.05 |
[bokeh] 패치, 폴리곤 (Patch, Polygons) (0) | 2020.10.05 |