Machine Learning/Visualize
파이썬 Jupyter Notebook 실전 입문 최신 버전 반영 코드 pg 299 - 2
초보 & 뉴비
2019. 3. 18. 14:25
pg 299
사전형 데이터 이용하기
리스트/그림 6.4.3
from bokeh.plotting import output_notebook, figure, show
from bokeh.models import ColumnDataSource
output_notebook()
p = figure(plot_width=400, plot_height=400)
data = {
'x': [1, 2, 3],
'y1': [1, 2, 3],
'y2': [2, 4, 9],
}
source = ColumnDataSource(data=data)
p.line(source=source, x='x', y='y1', line_width=3)
show(p)