Commit 7de36977 authored by Javier Duarte's avatar Javier Duarte
Browse files

final pub style

parent 31d8b532
Pipeline #3989757 skipped with stage
......@@ -208,7 +208,7 @@ def plot_likelihood_scans_1d(
# create the line
sig_line = ROOT.TLine(x_min, dnll2, x_max, dnll2)
r.setup_line(sig_line, props={"NDC": False, "LineWidth": 1}, color=colors.grey)
r.setup_line(sig_line, props={"NDC": False, "LineWidth": 1}, color=colors.white)
draw_objs.append(sig_line)
# create and position the label
......@@ -223,7 +223,7 @@ def plot_likelihood_scans_1d(
else:
sig_label = "{}#sigma".format(sig)
sig_label = r.routines.create_top_right_label(sig_label, pad=pad, x_offset=5,
y=sig_label_y, props={"TextSize": 22, "TextColor": colors.grey, "TextAlign": 31})
y=sig_label_y, props={"TextSize": 22, "TextColor": colors.white, "TextAlign": 31})
draw_objs.append(sig_label)
# draw verical lines at requested values
......@@ -472,7 +472,7 @@ def plot_likelihood_scan_2d(
(contour_colors[l] if l in contour_colors else rest_colors.pop(0))
for l in contour_levels
]
contour_colors = n_contours * [colors.light_grey]
contour_colors = n_contours * [colors.white]
contour_styles = ([1, 2, 3, 4] + max(n_contours - 4, 0) * [8])[:n_contours]
# get the contours
......@@ -658,7 +658,7 @@ def plot_likelihood_scan_2d(
g_sm = create_tgraph(1, poi_data[poi1].sm_value, poi_data[poi2].sm_value)
r.setup_graph(g_sm, props={"MarkerStyle": 33, "MarkerSize": 2.5}, color=colors.red)
draw_objs.insert(-1, (g_sm, "P"))
legend_entries.append((g_sm, "SM Higgs", "P"))
legend_entries.append((g_sm, "SM Higgs boson", "P"))
# central best fit point
if show_best_fit and scan:
......@@ -710,13 +710,13 @@ def plot_likelihood_scan_2d(
if legend_entries:
if show_contours_only:
legend = r.routines.create_legend(pad=pad, width=260, n=2,
props={"NColumns": 2, "TextSize": 24})
props={"NColumns": 2, "TextSize": 28})
else:
legend = r.routines.create_legend(pad=pad, width=260, n=len(legend_entries),
props={"TextSize": 24})
props={"TextSize": 28})
legend2 = r.routines.create_legend(pad=pad, x1=20, y1=20, y2=140, width=120, n=len(legend2_entries),
props={"TextSize": 24})
props={"TextSize": 28})
r.fill_legend(legend, legend_entries)
r.fill_legend(legend2, legend2_entries)
draw_objs.append(legend)
......@@ -726,21 +726,21 @@ def plot_likelihood_scan_2d(
cms_layout = "inside_horizontal"
_cms_postfix = "" if paper else cms_postfix
cms_labels = r.routines.create_cms_labels(pad=pad, postfix=_cms_postfix, layout=cms_layout,
text_size=34)
text_size=38)
draw_objs.extend(cms_labels)
# model parameter labels
if model_parameters:
param_kwargs = {}
if cms_layout.startswith("inside"):
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 80
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 24}}
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 85
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 28}}
draw_objs.extend(create_model_parameters(model_parameters, pad, **param_kwargs))
# campaign label
if campaign:
campaign_label = to_root_latex(campaign_labels.get(campaign, campaign))
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad)
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad, props={"TextSize": 28})
draw_objs.append(campaign_label)
# draw all objects
......
......@@ -376,7 +376,7 @@ def plot_limit_scan(
# legend
legend_entries_l += (3 - len(legend_entries_l)) * [(h_dummy, " ", "L")]
legend_entries_r += (3 - len(legend_entries_r)) * [(h_dummy, " ", "L")]
legend = r.routines.create_legend(pad=pad, width=400, n=3, props={"NColumns": 2, "TextSize": 20})
legend = r.routines.create_legend(pad=pad, x1=255, width=328, n=3, props={"NColumns": 2, "TextSize": 22})
r.fill_legend(legend, legend_entries_l + legend_entries_r)
draw_objs.append(legend)
if not paper:
......@@ -388,21 +388,21 @@ def plot_limit_scan(
cms_layout = "inside_horizontal"
_cms_postfix = "" if paper else cms_postfix
cms_labels = r.routines.create_cms_labels(pad=pad, postfix=_cms_postfix, layout=cms_layout,
text_size=34)
text_size=38)
draw_objs.extend(cms_labels)
# model parameter labels
if model_parameters:
param_kwargs = {}
if cms_layout.startswith("inside"):
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 80
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 24}}
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 85
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 28}}
draw_objs.extend(create_model_parameters(model_parameters, pad, **param_kwargs))
# campaign label
if campaign:
campaign_label = to_root_latex(campaign_labels.get(campaign, campaign))
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad)
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad, props={"TextSize": 28})
draw_objs.append(campaign_label)
# draw all objects
......@@ -646,7 +646,7 @@ def plot_limit_scans(
legend_cols = min(int(math.ceil(len(legend_entries) / 4.)), 3)
legend_rows = int(math.ceil(len(legend_entries) / float(legend_cols)))
legend = r.routines.create_legend(pad=pad, width=legend_cols * 210, n=legend_rows,
props={"NColumns": legend_cols, "TextSize": 18})
props={"NColumns": legend_cols, "TextSize": 18})
r.fill_legend(legend, legend_entries)
draw_objs.append(legend)
legend_box = r.routines.create_legend_box(legend, pad, "trl",
......@@ -1040,7 +1040,7 @@ def plot_limit_points(
transform=transform_thy)
# legend
legend = r.routines.create_legend(pad=pad, width=380, n=3, props={"NColumns": 2, "TextSize": 20})
legend = r.routines.create_legend(pad=pad, width=440, n=3, props={"NColumns": 2, "TextSize": 20})
r.fill_legend(legend, legend_entries)
draw_objs.append(legend)
......@@ -1048,21 +1048,21 @@ def plot_limit_points(
cms_layout = "inside_horizontal"
_cms_postfix = "" if paper else cms_postfix
cms_labels = r.routines.create_cms_labels(pad=pad, postfix=_cms_postfix, layout=cms_layout,
text_size=34)
text_size=38)
draw_objs.extend(cms_labels)
# model parameter labels
if model_parameters:
param_kwargs = {}
if cms_layout.startswith("inside"):
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 80
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 24}}
draw_objs.extend(create_model_parameters(model_parameters, pad, **param_kwargs))
y_offset = 100 if cms_layout == "inside_vertical" and _cms_postfix else 85
param_kwargs = {"y_offset": y_offset, "props": {"TextSize": 28}}
draw_objs.extend(create_model_parameters(model_parameters, pad, dy=28, **param_kwargs))
# campaign label
if campaign:
campaign_label = to_root_latex(campaign_labels.get(campaign, campaign))
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad)
campaign_label = r.routines.create_top_right_label(campaign_label, pad=pad, props={"TextSize": 28})
draw_objs.append(campaign_label)
# draw all objects
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment