Update app.py
Browse files
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({'课程':['
|
| 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():
|