changxin commited on
Commit
fbee28c
·
1 Parent(s): a164d2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def pd_bar():
17
  plt.close('all')
18
  df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
19
  ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"])
20
- ax.table(cellText=df.values,colLabels=df.columns,loc='bottom',rowLabels=['语文', '数学', '英语'],colLoc='center')
21
  return ax.get_figure() #plt
22
  def plt_line():
23
  plt.close('all')
 
17
  plt.close('all')
18
  df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
19
  ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"])
20
+ ax.table(cellText=df.values,colLabels=df.columns,loc='bottom',colLoc='center')
21
  return ax.get_figure() #plt
22
  def plt_line():
23
  plt.close('all')