joaogante HF staff commited on
Commit
58dc00d
1 Parent(s): 792fc21

fiddle with plots

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -162,10 +162,11 @@ def get_plot(model_name, plot_eager, generate_type):
162
  g.legend.set_title("Framework")
163
 
164
  # Add the number to the top of each bar
165
- for i in g.containers:
166
- g.bar_label(i,)
 
167
 
168
- plt.savefig(FIGURE_PATH, dpi=1200)
169
  return FIGURE_PATH
170
 
171
  demo = gr.Blocks()
 
162
  g.legend.set_title("Framework")
163
 
164
  # Add the number to the top of each bar
165
+ ax = g.facet_axis(0, 0)
166
+ for i in ax.containers:
167
+ ax.bar_label(i,)
168
 
169
+ plt.savefig(FIGURE_PATH, dpi=300)
170
  return FIGURE_PATH
171
 
172
  demo = gr.Blocks()