changxin commited on
Commit
c96d6fa
·
1 Parent(s): aeebddc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,7 +24,8 @@ def pd_bokeh():
24
  pd.set_option('plotting.backend','pandas_bokeh')
25
  pandas_bokeh.output_file("test.html")
26
  df=pd.DataFrame({'班级':['天','地','玄','黄'],'姓名':['诸葛清明','公孙轩辕','李耳','石破天'],'成绩':[66,78,99,85]})
27
- df.plot_bokeh.bar(x='姓名',y='成绩',ylabel="群员吹水战绩",title="吹牛逼你们是认真的",alpha=0.6,show_figure=False,legend="bottom_right")
 
28
  return 'test.html'
29
  #def pyg2plot_chart():
30
  # bar = Plot("Column")
 
24
  pd.set_option('plotting.backend','pandas_bokeh')
25
  pandas_bokeh.output_file("test.html")
26
  df=pd.DataFrame({'班级':['天','地','玄','黄'],'姓名':['诸葛清明','公孙轩辕','李耳','石破天'],'成绩':[66,78,99,85]})
27
+ tt=df.plot_bokeh.bar(x='姓名',y='成绩',ylabel="群员吹水战绩",title="吹牛逼你们是认真的",alpha=0.6,figsize=(600,300),show_figure=False,legend="bottom_right")
28
+ pandas_bokeh.save(tt)
29
  return 'test.html'
30
  #def pyg2plot_chart():
31
  # bar = Plot("Column")