Update app.py
Browse files
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',
|
| 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')
|