From 36939caa2232dfbfaa301310143d83855cd12095 Mon Sep 17 00:00:00 2001 From: Oliver Freyermuth Date: Fri, 1 Dec 2023 18:33:07 +0100 Subject: [PATCH] prmon_plot: don't use square brackets around units Using square brackets around units hurts the heart of the physicist, as square brackets must only be used around quantities to denote their units (i.e. [F] = N). The correct notation recommended by SI, ISO and DIN standards is to divide by the unit instead. --- package/scripts/prmon_plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/scripts/prmon_plot.py b/package/scripts/prmon_plot.py index 5baa1f5..46b326e 100755 --- a/package/scripts/prmon_plot.py +++ b/package/scripts/prmon_plot.py @@ -348,8 +348,8 @@ def main(): fyunit = args.yunit plt.title("Plot of {} vs {}".format(fxlabel, fylabel), y=1.05) - plt.xlabel((fxlabel + " [" + fxunit + "]") if fxunit != "1" else fxlabel) - plt.ylabel((fylabel + " [" + fyunit + "]") if fyunit != "1" else fylabel) + plt.xlabel((fxlabel + " / " + fxunit) if fxunit != "1" else fxlabel) + plt.ylabel((fylabel + " / " + fyunit) if fyunit != "1" else fylabel) plt.tight_layout() fig.savefig(output)