From 569b2b78baed903539895bd022ffe9d2e1576373 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 15:28:10 +0100 Subject: add summarize option to specify a custom latex preamble this is meant for some latex setup specifics like including common.tex --- src/plots.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/plots.py') diff --git a/src/plots.py b/src/plots.py index 1be0d31..d7fb0ea 100644 --- a/src/plots.py +++ b/src/plots.py @@ -469,6 +469,9 @@ def pgfplot_legend(bench, sumdir=""): rgb = matplotlib.colors.to_rgb(alloc_dict["color"]) tex += f"\\providecolor{{{alloc_name}-color}}{{rgb}}{{{rgb[0]},{rgb[1]},{rgb[2]}}}\n" + if src.globalvars.latex_custom_preamble: + tex += src.globalvars.latex_custom_preamble + "\n" + tex +=\ """ \\begin{document} @@ -517,6 +520,9 @@ def pgfplot_linear(bench, perms, xval, yval, ylabel="'y-label'", xlabel="'x-labe rgb = matplotlib.colors.to_rgb(alloc_dict["color"]) tex += f"\\providecolor{{{alloc_name}-color}}{{rgb}}{{{rgb[0]},{rgb[1]},{rgb[2]}}}\n" + if src.globalvars.latex_custom_preamble: + tex += src.globalvars.latex_custom_preamble + "\n" + tex +=\ f""" \\begin{{document}} -- cgit v1.2.3