changxin commited on
Commit
53d2b62
·
1 Parent(s): 6e5b8e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def pd_plotly():
16
  pd.options.plotting.backend='plotly'
17
  df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
18
  ax = df.plot.bar(x='课程',y='成绩')
19
- return ax.get_figure() #plt
20
  demo=gr.Blocks()
21
  with demo:
22
  gr.Markdown("# <center>图表渲染测试")
 
16
  pd.options.plotting.backend='plotly'
17
  df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
18
  ax = df.plot.bar(x='课程',y='成绩')
19
+ return ax #plt
20
  demo=gr.Blocks()
21
  with demo:
22
  gr.Markdown("# <center>图表渲染测试")