728x90
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)
.
'bokeh' 카테고리의 다른 글
[bokeh] 스타일 (Style) (0) | 2020.10.05 |
---|---|
[bokeh] 축 유형 지정 (Specifying Axis Types) (0) | 2020.10.05 |
[bokeh] 도형 결합 (Combining Multiple Glyphs) (0) | 2020.10.05 |
[bokeh] 쐐기, 원호 (Wedges, Arcs) (0) | 2020.10.05 |
[bokeh] 세그먼트, 광선(Segments, Rays) (0) | 2020.10.05 |