Made all graphs to have tight bounding boxes.

This commit is contained in:
2025-04-19 14:58:09 -07:00
parent cbd575697f
commit 0c5cc2259d

View File

@@ -89,7 +89,7 @@
" plt.grid(axis='x', linestyle='--', alpha=0.75) \n",
" plt.title(\"%s vs %s\" % (label1, label2))\n",
" if saveto is not None:\n",
" plt.savefig(saveto)\n",
" plt.savefig(saveto, bbox_inches='tight')\n",
" del df, df2\n",
"\n",
"l1 = get_langs( so_df )\n",
@@ -152,7 +152,7 @@
" # don't draw the line if every value is greater than 0\n",
" plt.axhline(y=df[KEY].tolist().index(lowest) + offset, color='red', linestyle='--')\n",
" if saveto is not None:\n",
" plt.savefig(saveto)\n",
" plt.savefig(saveto, bbox_inches='tight')\n",
" \n",
"motiv_diff = get_difference(l2, l1)\n",
"# print(motiv_diff)\n",