changxin commited on
Commit
8df080b
·
1 Parent(s): 53d2b62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ 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():
11
  plt.close('all')
 
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"])
9
  return ax.get_figure() #plt
10
  def plt_line():
11
  plt.close('all')