Skip to content

Commit

Permalink
improve pdf padding
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter committed Apr 17, 2024
1 parent 472d67e commit 03e4431
Show file tree
Hide file tree
Showing 146 changed files with 75 additions and 91 deletions.
42 changes: 13 additions & 29 deletions graphs/accuracy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -25,13 +25,13 @@
" fig = ax.get_figure()\n",
" fig.tight_layout()\n",
"\n",
" fig.savefig(folder + suffix + \".\" + format)\n",
" fig.savefig(folder + suffix + \".\" + format, bbox_inches='tight')\n",
" fig.clear()"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -276,7 +276,7 @@
"[6982688 rows x 9 columns]"
]
},
"execution_count": 11,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -400,7 +400,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -603,7 +603,7 @@
"[6982688 rows x 9 columns]"
]
},
"execution_count": 12,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -616,7 +616,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -625,7 +625,7 @@
"<AxesSubplot:xlabel='t [s]', ylabel='Latency [ms]'>"
]
},
"execution_count": 13,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -649,7 +649,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -658,7 +658,7 @@
"<AxesSubplot:xlabel='t', ylabel='Latency'>"
]
},
"execution_count": 14,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -680,7 +680,7 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -711,25 +711,9 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"ename": "KeyboardInterrupt",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb Cell 7'\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb#ch0000006?line=5'>6</a>\u001b[0m ax_paper\u001b[39m.\u001b[39mset_xlabel(\u001b[39m\"\u001b[39m\u001b[39mt [s]\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb#ch0000006?line=6'>7</a>\u001b[0m save_fig(ax_paper, \u001b[39m\"\u001b[39m\u001b[39m./website/accuracy/\u001b[39m\u001b[39m\"\u001b[39m, \u001b[39m\"\u001b[39m\u001b[39maccuracy-\u001b[39m\u001b[39m\"\u001b[39m \u001b[39m+\u001b[39m experiment \u001b[39m+\u001b[39m \u001b[39m\"\u001b[39m\u001b[39m-\u001b[39m\u001b[39m\"\u001b[39m \u001b[39m+\u001b[39m run \u001b[39m+\u001b[39m \u001b[39m\"\u001b[39m\u001b[39m-\u001b[39m\u001b[39m\"\u001b[39m \u001b[39m+\u001b[39m path, \u001b[39mformat\u001b[39m\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mpng\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[0;32m---> <a href='vscode-notebook-cell:/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb#ch0000006?line=9'>10</a>\u001b[0m ax_paper \u001b[39m=\u001b[39m sns\u001b[39m.\u001b[39mlineplot(x\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mt\u001b[39m\u001b[39m\"\u001b[39m, y\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mLatency_Rolling_log10\u001b[39m\u001b[39m\"\u001b[39m, data\u001b[39m=\u001b[39mdf_paper[(df_paper[\u001b[39m\"\u001b[39m\u001b[39mExperiment\u001b[39m\u001b[39m\"\u001b[39m] \u001b[39m==\u001b[39m experiment) \u001b[39m&\u001b[39m (df_paper[\u001b[39m\"\u001b[39;49m\u001b[39mRun\u001b[39;49m\u001b[39m\"\u001b[39;49m] \u001b[39m==\u001b[39;49m run) \u001b[39m&\u001b[39m (df_paper[\u001b[39m\"\u001b[39m\u001b[39mPath\u001b[39m\u001b[39m\"\u001b[39m] \u001b[39m==\u001b[39m path)], style\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mType\u001b[39m\u001b[39m\"\u001b[39m, color\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39m#444444\u001b[39m\u001b[39m\"\u001b[39m, style_order\u001b[39m=\u001b[39m[\u001b[39m\"\u001b[39m\u001b[39mMeasured\u001b[39m\u001b[39m\"\u001b[39m, \u001b[39m\"\u001b[39m\u001b[39mExpected\u001b[39m\u001b[39m\"\u001b[39m], ci\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m)\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb#ch0000006?line=10'>11</a>\u001b[0m ax_paper\u001b[39m.\u001b[39mset_ylabel(\u001b[39m\"\u001b[39m\u001b[39mlog10 Latency\u001b[39m\u001b[39m\\n\u001b[39;00m\u001b[39m(1s Rolling Median) [ms]\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m <a href='vscode-notebook-cell:/Users/tobias/Uni/Artefacts/project-celestial/celestial-videoconferencing-evaluation/graphs/accuracy.ipynb#ch0000006?line=11'>12</a>\u001b[0m ax_paper\u001b[39m.\u001b[39mset_xlabel(\u001b[39m\"\u001b[39m\u001b[39mt [s]\u001b[39m\u001b[39m\"\u001b[39m)\n",
"File \u001b[0;32m/opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/common.py:69\u001b[0m, in \u001b[0;36m_unpack_zerodim_and_defer.<locals>.new_method\u001b[0;34m(self, other)\u001b[0m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/common.py?line=64'>65</a>\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mNotImplemented\u001b[39m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/common.py?line=66'>67</a>\u001b[0m other \u001b[39m=\u001b[39m item_from_zerodim(other)\n\u001b[0;32m---> <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/common.py?line=68'>69</a>\u001b[0m \u001b[39mreturn\u001b[39;00m method(\u001b[39mself\u001b[39;49m, other)\n",
"File \u001b[0;32m/opt/homebrew/lib/python3.9/site-packages/pandas/core/arraylike.py:32\u001b[0m, in \u001b[0;36mOpsMixin.__eq__\u001b[0;34m(self, other)\u001b[0m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/arraylike.py?line=29'>30</a>\u001b[0m \u001b[39m@unpack_zerodim_and_defer\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39m__eq__\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/arraylike.py?line=30'>31</a>\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m__eq__\u001b[39m(\u001b[39mself\u001b[39m, other):\n\u001b[0;32m---> <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/arraylike.py?line=31'>32</a>\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_cmp_method(other, operator\u001b[39m.\u001b[39;49meq)\n",
"File \u001b[0;32m/opt/homebrew/lib/python3.9/site-packages/pandas/core/series.py:5502\u001b[0m, in \u001b[0;36mSeries._cmp_method\u001b[0;34m(self, other, op)\u001b[0m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/series.py?line=5498'>5499</a>\u001b[0m rvalues \u001b[39m=\u001b[39m extract_array(other, extract_numpy\u001b[39m=\u001b[39m\u001b[39mTrue\u001b[39;00m, extract_range\u001b[39m=\u001b[39m\u001b[39mTrue\u001b[39;00m)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/series.py?line=5500'>5501</a>\u001b[0m \u001b[39mwith\u001b[39;00m np\u001b[39m.\u001b[39merrstate(\u001b[39mall\u001b[39m\u001b[39m=\u001b[39m\u001b[39m\"\u001b[39m\u001b[39mignore\u001b[39m\u001b[39m\"\u001b[39m):\n\u001b[0;32m-> <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/series.py?line=5501'>5502</a>\u001b[0m res_values \u001b[39m=\u001b[39m ops\u001b[39m.\u001b[39;49mcomparison_op(lvalues, rvalues, op)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/series.py?line=5503'>5504</a>\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_construct_result(res_values, name\u001b[39m=\u001b[39mres_name)\n",
"File \u001b[0;32m/opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py:284\u001b[0m, in \u001b[0;36mcomparison_op\u001b[0;34m(left, right, op)\u001b[0m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=280'>281</a>\u001b[0m \u001b[39mreturn\u001b[39;00m invalid_comparison(lvalues, rvalues, op)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=282'>283</a>\u001b[0m \u001b[39melif\u001b[39;00m is_object_dtype(lvalues\u001b[39m.\u001b[39mdtype) \u001b[39mor\u001b[39;00m \u001b[39misinstance\u001b[39m(rvalues, \u001b[39mstr\u001b[39m):\n\u001b[0;32m--> <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=283'>284</a>\u001b[0m res_values \u001b[39m=\u001b[39m comp_method_OBJECT_ARRAY(op, lvalues, rvalues)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=285'>286</a>\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=286'>287</a>\u001b[0m res_values \u001b[39m=\u001b[39m _na_arithmetic_op(lvalues, rvalues, op, is_cmp\u001b[39m=\u001b[39m\u001b[39mTrue\u001b[39;00m)\n",
"File \u001b[0;32m/opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py:73\u001b[0m, in \u001b[0;36mcomp_method_OBJECT_ARRAY\u001b[0;34m(op, x, y)\u001b[0m\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=70'>71</a>\u001b[0m result \u001b[39m=\u001b[39m libops\u001b[39m.\u001b[39mvec_compare(x\u001b[39m.\u001b[39mravel(), y\u001b[39m.\u001b[39mravel(), op)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=71'>72</a>\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[0;32m---> <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=72'>73</a>\u001b[0m result \u001b[39m=\u001b[39m libops\u001b[39m.\u001b[39;49mscalar_compare(x\u001b[39m.\u001b[39;49mravel(), y, op)\n\u001b[1;32m <a href='file:///opt/homebrew/lib/python3.9/site-packages/pandas/core/ops/array_ops.py?line=73'>74</a>\u001b[0m \u001b[39mreturn\u001b[39;00m result\u001b[39m.\u001b[39mreshape(x\u001b[39m.\u001b[39mshape)\n",
"\u001b[0;31mKeyboardInterrupt\u001b[0m: "
]
},
{
"data": {
"text/plain": [
Expand Down Expand Up @@ -758,7 +742,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down
46 changes: 23 additions & 23 deletions graphs/cdfs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -26,13 +26,13 @@
" fig = ax.get_figure()\n",
" fig.tight_layout()\n",
"\n",
" fig.savefig(folder + suffix + format)\n",
" fig.savefig(folder + suffix + format, bbox_inches='tight')\n",
" fig.clear()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -222,7 +222,7 @@
"[6978380 rows x 4 columns]"
]
},
"execution_count": 5,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -308,7 +308,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -474,7 +474,7 @@
"[158039 rows x 7 columns]"
]
},
"execution_count": 6,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -516,7 +516,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -682,7 +682,7 @@
"[27166 rows x 7 columns]"
]
},
"execution_count": 7,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -693,7 +693,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -702,7 +702,7 @@
"Text(0.5, 0, 'Latency [ms]')"
]
},
"execution_count": 8,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -731,7 +731,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -756,7 +756,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -947,7 +947,7 @@
"[158039 rows x 8 columns]"
]
},
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -960,7 +960,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -969,7 +969,7 @@
"Text(46.5, 0.5, '46ms')"
]
},
"execution_count": 11,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -1002,7 +1002,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -1011,7 +1011,7 @@
"array(['2-3', '2-1', '1-3', '1-2', '3-1', '3-2'], dtype=object)"
]
},
"execution_count": 12,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -1022,7 +1022,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1064,7 +1064,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1098,7 +1098,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand All @@ -1107,7 +1107,7 @@
"Text(46.5, 0.5, '46ms')"
]
},
"execution_count": 16,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
},
Expand All @@ -1134,7 +1134,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1218,7 +1218,7 @@
"146897 Cloud "
]
},
"execution_count": 17,
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Binary file removed graphs/paper/accuracy-server-2-2-1.pdf
Binary file not shown.
Binary file removed graphs/paper/cpu_usage.pdf
Binary file not shown.
Binary file removed graphs/paper/mem_usage.pdf
Binary file not shown.
Binary file removed graphs/paper/reproducibility-server-3-2.pdf
Binary file not shown.
Binary file removed graphs/paper/results-cdf-1-2.pdf
Binary file not shown.
Binary file removed graphs/paper/results-cdf-1-3.pdf
Binary file not shown.
Binary file removed graphs/paper/results-cdf-2-3.pdf
Binary file not shown.
Loading

0 comments on commit 03e4431

Please sign in to comment.