Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ def pd_bar():
|
|
| 8 |
ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"],rot=0)
|
| 9 |
return ax.get_figure()
|
| 10 |
def plt_line():
|
|
|
|
| 11 |
df = pd.DataFrame({'课程':['yw', 'sx', 'yy'], '成绩':[66, 98, 100]})
|
| 12 |
plt.plot(df['成绩'],color='green',linestyle='dashed',marker='o',markerfacecolor='blue',markersize=20)
|
| 13 |
-
plt.close('all')
|
| 14 |
return plt.gcf()
|
| 15 |
demo=gr.Blocks()
|
| 16 |
with demo:
|
|
|
|
| 8 |
ax = df.plot(x='课程',y='成绩',kind='bar',title='chinese word error!', color=["red","green","purple"],rot=0)
|
| 9 |
return ax.get_figure()
|
| 10 |
def plt_line():
|
| 11 |
+
plt.close('all')
|
| 12 |
df = pd.DataFrame({'课程':['yw', 'sx', 'yy'], '成绩':[66, 98, 100]})
|
| 13 |
plt.plot(df['成绩'],color='green',linestyle='dashed',marker='o',markerfacecolor='blue',markersize=20)
|
|
|
|
| 14 |
return plt.gcf()
|
| 15 |
demo=gr.Blocks()
|
| 16 |
with demo:
|