from bokeh.plotting import figure, show from bokeh.models import ColumnDataSource

source = ColumnDataSource(data=dict(job=job, lending_rate3m=lending_rate3m))

add plot

p = figure(x_range=job, title="asdf", toolbar_location=None, tools="")

render glyph

p.vbar(x='job', top='lending_rate3m', width=0.4, source=source)

p.xgrid.grid_line_color = None p.y_range.start = 0

show(p)

job=datajoblending_rate3m=datalending_rate3m#add plotp = figurex_range=jobtitle=asdf toolbar_location=None tools=#render glyphpvbarx=job top=lending_rate3m width=04pxgridgrid_line_color = No

原文地址: http://www.cveoy.top/t/topic/e9zn 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录