Made all graphs to have tight bounding boxes.
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
" plt.grid(axis='x', linestyle='--', alpha=0.75) \n",
|
" plt.grid(axis='x', linestyle='--', alpha=0.75) \n",
|
||||||
" plt.title(\"%s vs %s\" % (label1, label2))\n",
|
" plt.title(\"%s vs %s\" % (label1, label2))\n",
|
||||||
" if saveto is not None:\n",
|
" if saveto is not None:\n",
|
||||||
" plt.savefig(saveto)\n",
|
" plt.savefig(saveto, bbox_inches='tight')\n",
|
||||||
" del df, df2\n",
|
" del df, df2\n",
|
||||||
"\n",
|
"\n",
|
||||||
"l1 = get_langs( so_df )\n",
|
"l1 = get_langs( so_df )\n",
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
" # don't draw the line if every value is greater than 0\n",
|
" # 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",
|
" plt.axhline(y=df[KEY].tolist().index(lowest) + offset, color='red', linestyle='--')\n",
|
||||||
" if saveto is not None:\n",
|
" if saveto is not None:\n",
|
||||||
" plt.savefig(saveto)\n",
|
" plt.savefig(saveto, bbox_inches='tight')\n",
|
||||||
" \n",
|
" \n",
|
||||||
"motiv_diff = get_difference(l2, l1)\n",
|
"motiv_diff = get_difference(l2, l1)\n",
|
||||||
"# print(motiv_diff)\n",
|
"# print(motiv_diff)\n",
|
||||||
|
Reference in New Issue
Block a user