From c98af87f9e54f355b8ec73dee684e187dd4674c3 Mon Sep 17 00:00:00 2001 From: Lukas Lazarek Date: Tue, 14 Jan 2025 17:36:01 +0200 Subject: [PATCH] Tweak commands viz to make bg transparent --- infrastructure/viz/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/viz/commands.py b/infrastructure/viz/commands.py index e333953f..28f7cc85 100644 --- a/infrastructure/viz/commands.py +++ b/infrastructure/viz/commands.py @@ -1,6 +1,7 @@ import pandas as pd import seaborn as sns import matplotlib.pyplot as plt +import os from syntax import * # Data format example: @@ -46,7 +47,7 @@ def command_distribution(df, outdir=None): "font.family": "serif", "font.serif": ["Times New Roman"], # Replace with your LaTeX font if different }) - plt.savefig(os.path.join(outdir, 'bensh-cmd-distribution.pdf')) + plt.savefig(os.path.join(outdir, 'bensh-cmd-distribution.pdf'), facecolor='none', edgecolor='none') else: plt.show()