fiddle with plots
Browse files
app.py
CHANGED
@@ -160,6 +160,11 @@ def get_plot(model_name, plot_eager, generate_type):
|
|
160 |
g.despine(left=True)
|
161 |
g.set_axis_labels("GPU", "Generation time (ms)")
|
162 |
g.legend.set_title("Framework")
|
|
|
|
|
|
|
|
|
|
|
163 |
plt.savefig(FIGURE_PATH, dpi=1200)
|
164 |
return FIGURE_PATH
|
165 |
|
|
|
160 |
g.despine(left=True)
|
161 |
g.set_axis_labels("GPU", "Generation time (ms)")
|
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 |
|