changxin commited on
Commit
a34e9ad
·
1 Parent(s): 0091883

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -91,7 +91,11 @@ def plot(v, a):
91
  return fig
92
 
93
  def fx9(x):
94
- return x.plot()
 
 
 
 
95
 
96
  with demo:
97
  gr.Markdown(
 
91
  return fig
92
 
93
  def fx9(x):
94
+ pd.options.plotting.backend='matplotlib'
95
+ plt.close('all')
96
+ ax = x.plot(x='数据1',y='数据2',kind='bar',title='chinese word error!', color=["red","green","purple"])
97
+ ax.table(cellText=df.values,colLabels=df.columns,loc='bottom',colLoc='center')
98
+ return ax.get_figure()
99
 
100
  with demo:
101
  gr.Markdown(