끄적끄적 코딩
article thumbnail
Published 2020. 10. 5. 07:58
[bokeh] 범위 지정 (Setting Ranges) bokeh
from bokeh.models import Range1d

x = np.random.randn(50)
y = np.random.randn(50)
p = figure(plot_width=400, plot_height=400)
p.x_range = Range1d(-5, 5, bounds=(-10, None))	# 왼쪽으로 -10까지 확인가능, 오른쪽으로 제한 없음
p.y_range = Range1d(-5, 5, bounds='auto')	# y축 고정
p.circle(x, y, size=10)
show(p)

.

검색 태그