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
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)
原文地址: http://www.cveoy.top/t/topic/e9zn 著作权归作者所有。请勿转载和采集!