끄적끄적 코딩
article thumbnail
Published 2020. 10. 5. 13:59
[bokeh] 레이아웃 (Layout) bokeh

row

from bokeh.layouts import row

x = list(range(10))
y1 = np.random.randint(1, 10, 10)
y2 = np.random.randint(1, 10, 10)
y3 = np.random.randint(1, 10, 10)

s1 = figure(width=250, plot_height=250)
s1.square(x, y1, size=10, color="red", alpha=0.5)
s2 = figure(width=250, plot_height=250)
s2.square(x, y2, size=10, color="green", alpha=0.5)
s3 = figure(width=250, plot_height=250)
s3.square(x, y3, size=10, color="blue", alpha=0.5)

show(row(s1, s2, s3))

 

gridplot

from bokeh.layouts import gridplot

p = gridplot([[s1, s2], [s3, None]], toolbar_location=None)
show(p)

.

'bokeh' 카테고리의 다른 글

[bokeh] 위젯 (Widgets)  (0) 2020.10.05
[bokeh] 연결된 상호작용 (Linked Interactions)  (0) 2020.10.05
[bokeh] 주석 (Annotations)  (0) 2020.10.05
[bokeh] 데이터 제공  (0) 2020.10.05
[bokeh] 스타일 (Style)  (0) 2020.10.05

검색 태그