changxin commited on
Commit
f8e542c
·
1 Parent(s): 02157cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def pd_bokeh():
22
  import pandas_bokeh
23
  from bokeh.plotting import figure,show
24
  df = pd.DataFrame({'A':[125,44,76], 'B':[66, 98, 78]})
25
- ax = df.plot_bokeh.scatter(x='A',y='B')
26
- return ax #plt
27
  demo=gr.Blocks()
28
  with demo:
29
  gr.Markdown("# <center>图表渲染测试")
 
22
  import pandas_bokeh
23
  from bokeh.plotting import figure,show
24
  df = pd.DataFrame({'A':[125,44,76], 'B':[66, 98, 78]})
25
+ ax = df.plot_Bokeh.scatter(x='A',y='B')
26
+ return ax.get_figure() #plt
27
  demo=gr.Blocks()
28
  with demo:
29
  gr.Markdown("# <center>图表渲染测试")