changxin commited on
Commit
1521735
·
1 Parent(s): 20986ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ import matplotlib.pyplot as plt
4
  plt.rcParams['font.sans-serif']=['SimHei']
5
  plt.rcParams['axes.unicode_minus']=False
6
  def pd_bar():
7
- df = pd.DataFrame({'课程':['yw', 'sx', 'yy'], '成绩':[66, 98, 78]})
8
  ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"],rot=0)
9
  return ax.get_figure() #plt
10
  def plt_line():
 
4
  plt.rcParams['font.sans-serif']=['SimHei']
5
  plt.rcParams['axes.unicode_minus']=False
6
  def pd_bar():
7
+ df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
8
  ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"],rot=0)
9
  return ax.get_figure() #plt
10
  def plt_line():