fiddle with plots
Browse files
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 |
-
|
| 166 |
-
|
|
|
|
| 167 |
|
| 168 |
-
plt.savefig(FIGURE_PATH, dpi=
|
| 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()
|