Skip to content

Commit

Permalink
Plots: bbox_inches="tight"
Browse files Browse the repository at this point in the history
Fixes the subtext getting cut of
  • Loading branch information
EwoutH committed Nov 1, 2023
1 parent b99624c commit 08aa46c
Show file tree
Hide file tree
Showing 5 changed files with 792 additions and 792 deletions.
120 changes: 60 additions & 60 deletions scripts/benchmarks_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.583264200Z",
"start_time": "2023-11-01T21:28:19.577571400Z"
"end_time": "2023-11-01T21:33:10.913427900Z",
"start_time": "2023-11-01T21:33:10.910180400Z"
}
},
"outputs": [],
Expand All @@ -30,8 +30,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.603679Z",
"start_time": "2023-11-01T21:28:19.584199700Z"
"end_time": "2023-11-01T21:33:10.927243900Z",
"start_time": "2023-11-01T21:33:10.914454200Z"
}
},
"id": "39dc48e867b713f7"
Expand All @@ -55,8 +55,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.629712300Z",
"start_time": "2023-11-01T21:28:19.597166700Z"
"end_time": "2023-11-01T21:33:10.953733300Z",
"start_time": "2023-11-01T21:33:10.923295100Z"
}
},
"id": "d2f585436e18fac"
Expand Down Expand Up @@ -90,8 +90,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.682712800Z",
"start_time": "2023-11-01T21:28:19.608893600Z"
"end_time": "2023-11-01T21:33:11.005603600Z",
"start_time": "2023-11-01T21:33:10.934346800Z"
}
},
"id": "f6a9b805227cea23"
Expand Down Expand Up @@ -124,8 +124,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.843589800Z",
"start_time": "2023-11-01T21:28:19.625732400Z"
"end_time": "2023-11-01T21:33:11.184997500Z",
"start_time": "2023-11-01T21:33:10.948691900Z"
}
},
"id": "d39355d294702e24"
Expand Down Expand Up @@ -153,8 +153,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.975389700Z",
"start_time": "2023-11-01T21:28:19.792511400Z"
"end_time": "2023-11-01T21:33:11.273392700Z",
"start_time": "2023-11-01T21:33:11.078350300Z"
}
},
"id": "2b67d6f2782b6cb2"
Expand All @@ -173,8 +173,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:19.975389700Z",
"start_time": "2023-11-01T21:28:19.967170Z"
"end_time": "2023-11-01T21:33:11.274410500Z",
"start_time": "2023-11-01T21:33:11.258711200Z"
}
},
"id": "9c308b01798f9dbf"
Expand Down Expand Up @@ -239,8 +239,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:20.857483Z",
"start_time": "2023-11-01T21:28:19.972385600Z"
"end_time": "2023-11-01T21:33:12.061931500Z",
"start_time": "2023-11-01T21:33:11.263470900Z"
}
},
"id": "364a9713072b16c8"
Expand All @@ -267,8 +267,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:20.874083900Z",
"start_time": "2023-11-01T21:28:20.864480900Z"
"end_time": "2023-11-01T21:33:12.077979600Z",
"start_time": "2023-11-01T21:33:12.061931500Z"
}
},
"id": "51507da432625cbe"
Expand All @@ -295,8 +295,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.064276500Z",
"start_time": "2023-11-01T21:28:20.870026100Z"
"end_time": "2023-11-01T21:33:12.098430100Z",
"start_time": "2023-11-01T21:33:12.070989Z"
}
},
"id": "a8251c353c294a87"
Expand All @@ -312,8 +312,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.064276500Z",
"start_time": "2023-11-01T21:28:20.925018300Z"
"end_time": "2023-11-01T21:33:12.098430100Z",
"start_time": "2023-11-01T21:33:12.084166700Z"
}
},
"id": "641b8f4028869b55"
Expand All @@ -329,8 +329,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.064276500Z",
"start_time": "2023-11-01T21:28:20.932733800Z"
"end_time": "2023-11-01T21:33:12.124563600Z",
"start_time": "2023-11-01T21:33:12.092990200Z"
}
},
"id": "b644f1153acdf4d9"
Expand All @@ -347,8 +347,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.107952Z",
"start_time": "2023-11-01T21:28:20.941379800Z"
"end_time": "2023-11-01T21:33:12.173591600Z",
"start_time": "2023-11-01T21:33:12.098430100Z"
}
},
"id": "24ffc481f294e6c7"
Expand All @@ -361,14 +361,14 @@
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\Ewout\\AppData\\Local\\Temp\\ipykernel_14856\\3057898379.py:6: FutureWarning: Styler.applymap has been deprecated. Use Styler.map instead.\n",
"C:\\Users\\Ewout\\AppData\\Local\\Temp\\ipykernel_32408\\3057898379.py:6: FutureWarning: Styler.applymap has been deprecated. Use Styler.map instead.\n",
" mean_df.style.applymap(color_red_green)\n"
]
},
{
"data": {
"text/plain": "<pandas.io.formats.style.Styler at 0x2eb9621ee10>",
"text/html": "<style type=\"text/css\">\n#T_cc551_row0_col0, #T_cc551_row0_col1, #T_cc551_row0_col2, #T_cc551_row1_col0, #T_cc551_row2_col0 {\n color: red;\n}\n#T_cc551_row1_col1, #T_cc551_row1_col2, #T_cc551_row2_col1, #T_cc551_row2_col2 {\n color: green;\n}\n</style>\n<table id=\"T_cc551\">\n <thead>\n <tr>\n <th class=\"index_name level0\" >Evaluator</th>\n <th id=\"T_cc551_level0_col0\" class=\"col_heading level0 col0\" >SequentialEvaluator</th>\n <th id=\"T_cc551_level0_col1\" class=\"col_heading level0 col1\" >MultiprocessingEvaluator</th>\n <th id=\"T_cc551_level0_col2\" class=\"col_heading level0 col2\" >MPIEvaluator</th>\n </tr>\n <tr>\n <th class=\"index_name level0\" >Model</th>\n <th class=\"blank col0\" >&nbsp;</th>\n <th class=\"blank col1\" >&nbsp;</th>\n <th class=\"blank col2\" >&nbsp;</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th id=\"T_cc551_level0_row0\" class=\"row_heading level0 row0\" >python</th>\n <td id=\"T_cc551_row0_col0\" class=\"data row0 col0\" >1.000000</td>\n <td id=\"T_cc551_row0_col1\" class=\"data row0 col1\" >0.134587</td>\n <td id=\"T_cc551_row0_col2\" class=\"data row0 col2\" >0.101187</td>\n </tr>\n <tr>\n <th id=\"T_cc551_level0_row1\" class=\"row_heading level0 row1\" >lake</th>\n <td id=\"T_cc551_row1_col0\" class=\"data row1 col0\" >1.000000</td>\n <td id=\"T_cc551_row1_col1\" class=\"data row1 col1\" >4.296364</td>\n <td id=\"T_cc551_row1_col2\" class=\"data row1 col2\" >3.036905</td>\n </tr>\n <tr>\n <th id=\"T_cc551_level0_row2\" class=\"row_heading level0 row2\" >flu</th>\n <td id=\"T_cc551_row2_col0\" class=\"data row2 col0\" >1.000000</td>\n <td id=\"T_cc551_row2_col1\" class=\"data row2 col1\" >4.041302</td>\n <td id=\"T_cc551_row2_col2\" class=\"data row2 col2\" >3.976416</td>\n </tr>\n </tbody>\n</table>\n"
"text/plain": "<pandas.io.formats.style.Styler at 0x1f46fbc0a90>",
"text/html": "<style type=\"text/css\">\n#T_c4380_row0_col0, #T_c4380_row0_col1, #T_c4380_row0_col2, #T_c4380_row1_col0, #T_c4380_row2_col0 {\n color: red;\n}\n#T_c4380_row1_col1, #T_c4380_row1_col2, #T_c4380_row2_col1, #T_c4380_row2_col2 {\n color: green;\n}\n</style>\n<table id=\"T_c4380\">\n <thead>\n <tr>\n <th class=\"index_name level0\" >Evaluator</th>\n <th id=\"T_c4380_level0_col0\" class=\"col_heading level0 col0\" >SequentialEvaluator</th>\n <th id=\"T_c4380_level0_col1\" class=\"col_heading level0 col1\" >MultiprocessingEvaluator</th>\n <th id=\"T_c4380_level0_col2\" class=\"col_heading level0 col2\" >MPIEvaluator</th>\n </tr>\n <tr>\n <th class=\"index_name level0\" >Model</th>\n <th class=\"blank col0\" >&nbsp;</th>\n <th class=\"blank col1\" >&nbsp;</th>\n <th class=\"blank col2\" >&nbsp;</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th id=\"T_c4380_level0_row0\" class=\"row_heading level0 row0\" >python</th>\n <td id=\"T_c4380_row0_col0\" class=\"data row0 col0\" >1.000000</td>\n <td id=\"T_c4380_row0_col1\" class=\"data row0 col1\" >0.134587</td>\n <td id=\"T_c4380_row0_col2\" class=\"data row0 col2\" >0.101187</td>\n </tr>\n <tr>\n <th id=\"T_c4380_level0_row1\" class=\"row_heading level0 row1\" >lake</th>\n <td id=\"T_c4380_row1_col0\" class=\"data row1 col0\" >1.000000</td>\n <td id=\"T_c4380_row1_col1\" class=\"data row1 col1\" >4.296364</td>\n <td id=\"T_c4380_row1_col2\" class=\"data row1 col2\" >3.036905</td>\n </tr>\n <tr>\n <th id=\"T_c4380_level0_row2\" class=\"row_heading level0 row2\" >flu</th>\n <td id=\"T_c4380_row2_col0\" class=\"data row2 col0\" >1.000000</td>\n <td id=\"T_c4380_row2_col1\" class=\"data row2 col1\" >4.041302</td>\n <td id=\"T_c4380_row2_col2\" class=\"data row2 col2\" >3.976416</td>\n </tr>\n </tbody>\n</table>\n"
},
"execution_count": 14,
"metadata": {},
Expand All @@ -386,8 +386,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.131956400Z",
"start_time": "2023-11-01T21:28:20.949376400Z"
"end_time": "2023-11-01T21:33:12.331723800Z",
"start_time": "2023-11-01T21:33:12.108644100Z"
}
},
"id": "99b786928b768e06"
Expand All @@ -414,8 +414,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.131956400Z",
"start_time": "2023-11-01T21:28:21.034232800Z"
"end_time": "2023-11-01T21:33:12.331723800Z",
"start_time": "2023-11-01T21:33:12.162575500Z"
}
},
"id": "9055d97d832e6cb9"
Expand Down Expand Up @@ -443,8 +443,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.132952300Z",
"start_time": "2023-11-01T21:28:21.037876400Z"
"end_time": "2023-11-01T21:33:12.332723100Z",
"start_time": "2023-11-01T21:33:12.170636200Z"
}
},
"id": "5fc1edd34acec517"
Expand Down Expand Up @@ -474,8 +474,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.132952300Z",
"start_time": "2023-11-01T21:28:21.051423300Z"
"end_time": "2023-11-01T21:33:12.386724400Z",
"start_time": "2023-11-01T21:33:12.184976400Z"
}
},
"id": "bc855dcfc23a3efb"
Expand Down Expand Up @@ -511,8 +511,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.132952300Z",
"start_time": "2023-11-01T21:28:21.057494700Z"
"end_time": "2023-11-01T21:33:12.387686600Z",
"start_time": "2023-11-01T21:33:12.189791900Z"
}
},
"id": "312fa459f4268b6f"
Expand Down Expand Up @@ -543,8 +543,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.134972900Z",
"start_time": "2023-11-01T21:28:21.064276500Z"
"end_time": "2023-11-01T21:33:12.404761600Z",
"start_time": "2023-11-01T21:33:12.197645200Z"
}
},
"id": "7546d5f2c80d129f"
Expand Down Expand Up @@ -576,8 +576,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.134972900Z",
"start_time": "2023-11-01T21:28:21.075355600Z"
"end_time": "2023-11-01T21:33:12.405757700Z",
"start_time": "2023-11-01T21:33:12.204245800Z"
}
},
"id": "febe809ae7634903"
Expand All @@ -602,13 +602,13 @@
"g.set_title(\"Boxplot with runtime of 25.000 lake model iterations\\nNon-exclusive node access\", ha=\"center\")\n",
"g.set_ylabel(\"Time (in seconds)\\n(lower is better)\")\n",
"g.set_xlabel(\"Number of nodes\\n1 node = 2x Intel XEON E5-6248R 24C 3.0GHz\\nThe mean is shown as a green triangle.\\n10 replications have been done for each model and evaluator combination.\\nPython 3.9.8 | DelftBlue | 2023r1\")\n",
"g.figure.savefig(\"boxplot_lake.svg\")"
"g.figure.savefig(\"boxplot_lake.svg\", bbox_inches=\"tight\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.410270600Z",
"start_time": "2023-11-01T21:28:21.084954Z"
"end_time": "2023-11-01T21:33:12.611480Z",
"start_time": "2023-11-01T21:33:12.213675900Z"
}
},
"id": "b1c06405085de920"
Expand Down Expand Up @@ -649,8 +649,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:21.725757100Z",
"start_time": "2023-11-01T21:28:21.318268500Z"
"end_time": "2023-11-01T21:33:12.910379Z",
"start_time": "2023-11-01T21:33:12.510411700Z"
}
},
"id": "86746ae2b9d4321e"
Expand Down Expand Up @@ -681,8 +681,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:28.511285800Z",
"start_time": "2023-11-01T21:28:28.494723900Z"
"end_time": "2023-11-01T21:33:15.938750700Z",
"start_time": "2023-11-01T21:33:15.920261800Z"
}
},
"id": "397c8e2139e6fd5f"
Expand All @@ -707,13 +707,13 @@
"g.set_title(\"Boxplot with runtime of 100.000 lake model iterations\\nExclusive node access\", ha=\"center\")\n",
"g.set_ylabel(\"Time (in seconds)\\n(lower is better)\")\n",
"g.set_xlabel(\"Number of nodes\\n1 node = 2x Intel XEON E5-6248R 24C 3.0GHz\\nThe mean is shown as a green triangle.\\n10 replications have been done for each node number.\\nPython 3.9.8 | DelftBlue | 2023r1\")\n",
"g.figure.savefig(\"boxplot_lake_exclusive.svg\")"
"g.figure.savefig(\"boxplot_lake_exclusive.svg\", bbox_inches=\"tight\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:29.512675100Z",
"start_time": "2023-11-01T21:28:29.248576100Z"
"end_time": "2023-11-01T21:33:16.446569500Z",
"start_time": "2023-11-01T21:33:16.125090600Z"
}
},
"id": "9e372f5e3079f612"
Expand Down Expand Up @@ -754,8 +754,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:30.563989100Z",
"start_time": "2023-11-01T21:28:30.537388700Z"
"end_time": "2023-11-01T21:33:16.462094500Z",
"start_time": "2023-11-01T21:33:16.434581400Z"
}
},
"id": "c15e2984816cc2e0"
Expand Down Expand Up @@ -786,8 +786,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:31.197299900Z",
"start_time": "2023-11-01T21:28:31.176298Z"
"end_time": "2023-11-01T21:33:16.677091400Z",
"start_time": "2023-11-01T21:33:16.637984700Z"
}
},
"id": "c5f172f3790053f2"
Expand All @@ -812,13 +812,13 @@
"g.set_title(\"Boxplot with runtime of 25.000 flu model iterations\\nExclusive node access\", ha=\"center\")\n",
"g.set_ylabel(\"Time (in seconds)\\n(lower is better)\")\n",
"g.set_xlabel(\"Number of nodes\\n1 node = 2x Intel XEON E5-6248R 24C 3.0GHz\\nThe mean is shown as a green triangle.\\n10 replications have been done for each node number.\\nPython 3.9.8 | DelftBlue | 2023r1\")\n",
"g.figure.savefig(\"boxplot_flu.svg\")"
"g.figure.savefig(\"boxplot_flu.svg\", bbox_inches=\"tight\")"
],
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-11-01T21:28:32.571712400Z",
"start_time": "2023-11-01T21:28:32.379097400Z"
"end_time": "2023-11-01T21:33:17.384478Z",
"start_time": "2023-11-01T21:33:17.122848600Z"
}
},
"id": "40da493f97e4cea0"
Expand Down

0 comments on commit 08aa46c

Please sign in to comment.