Skip to content

Commit

Permalink
update legend font size
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Jul 18, 2024
1 parent b5510bd commit 9d82061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/HHbbVV/postprocessing/PlotFits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"k2v0sig = False\n",
"unblinded = True\n",
"\n",
"plot_dir = MAIN_DIR / f\"plots/PostFit/24Jul15Fig8Prelim\"\n",
"plot_dir = MAIN_DIR / f\"plots/PostFit/24Jul18Fig8Prelim\"\n",
"# plot_dir = (\n",
"# MAIN_DIR\n",
"# / \"plots/PostFit/24Apr9ggFScan/nTF1/ggf_txbb_MP_ggf_bdt_0.9965_vbf_txbb_HP_vbf_bdt_0.999_lepton_veto_Hbb\"\n",
Expand Down Expand Up @@ -217,7 +217,7 @@
"metadata": {},
"outputs": [],
"source": [
"ylims = {\"passggf\": 40, \"passvbf\": 9, \"fail\": 6e5}\n",
"ylims = {\"passggf\": 60, \"passvbf\": 10, \"fail\": 7e5}\n",
"title_label = \" Asimov Dataset\" if asimov else \"\"\n",
"sig_scale_dict = {\n",
" \"HHbbVV\": 100,\n",
Expand All @@ -228,8 +228,8 @@
"sig_scale_dict = {key: val for key, val in sig_scale_dict.items() if key in sig_keys}\n",
"\n",
"for shape, shape_label in shapes.items():\n",
" if shape != \"postfit\":\n",
" continue\n",
" # if shape != \"postfit\":\n",
" # continue\n",
" for region, region_label in selection_regions.items():\n",
" pass_region = region.startswith(\"pass\")\n",
" for i, shape_var in enumerate(shape_vars):\n",
Expand All @@ -244,7 +244,7 @@
" \"ylim\": ylims[region],\n",
" \"title\": f\"{shape_label} {region_label} Region{title_label}\",\n",
" \"name\": f\"{plot_dir}/{shape}_{region}_{shape_var.var}.pdf\",\n",
" \"ncol\": 2 if region == \"passvbf\" else 1,\n",
" \"ncol\": 2, # if region == \"passvbf\" else 1,\n",
" \"ratio_ylims\": [0, 5] if region == \"passvbf\" else [0, 2],\n",
" \"cmslabel\": \"Preliminary\",\n",
" }\n",
Expand Down Expand Up @@ -341,7 +341,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "undefined.undefined.undefined"
"version": "3.9.15"
},
"orig_nbformat": 4,
"vscode": {
Expand Down
4 changes: 2 additions & 2 deletions src/HHbbVV/postprocessing/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ def ratioHistPlot(
if log:
ax.set_yscale("log")
# two column legend
ax.legend(fontsize=16, ncol=2)
ax.legend(fontsize=20, ncol=2)
else:
ax.legend(fontsize=16, ncol=ncol)
ax.legend(fontsize=20, ncol=ncol)

y_lowlim = 0 if not log else 1e-5
if ylim is not None:
Expand Down

0 comments on commit 9d82061

Please sign in to comment.