diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-24 14:59:20 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-24 14:59:20 +0100 |
| commit | 9d5e88cc15dea30a8ad4ed5d95879c7719bf1d55 (patch) | |
| tree | e2ddfffff1208588fca5e2c169f89e6bcaac47a8 /src | |
| parent | e5335a6bfd80bbcf036679cfea5d8e4ffdcc1881 (diff) | |
| download | allocbench-9d5e88cc15dea30a8ad4ed5d95879c7719bf1d55.tar.gz allocbench-9d5e88cc15dea30a8ad4ed5d95879c7719bf1d55.zip | |
add option to set additional axis attributes
Diffstat (limited to 'src')
| -rw-r--r-- | src/plots.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plots.py b/src/plots.py index bcd1e6a..2b2193d 100644 --- a/src/plots.py +++ b/src/plots.py @@ -513,7 +513,7 @@ def pgfplot_legend(bench, sumdir="", file_name="pgfplot_legend"): with open(os.path.join(sumdir, f"{file_name}.tex"), "w") as legend_file: print(tex, file=legend_file) -def pgfplot(bench, perms, xexpr, yexpr, bar=False, +def pgfplot(bench, perms, xexpr, yexpr, axis_attr=None, bar=False, ylabel="y-label", xlabel="x-label", title="default title", postfix="", sumdir="", scale=None, error_bars=True): @@ -567,6 +567,8 @@ f""" \tylabel={{{ylabel}}},""" if bar: tex += "\n\tybar,\n" + if axis_attr: + tex += f"\n\t{axis_attr},\n" tex += "]\n" for alloc_name in allocators: |
