Skip to content

Commit 05939d1

Browse files
authored
prmon_plot: don't use square brackets around units (#236)
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.
1 parent 4646e6e commit 05939d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/scripts/prmon_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def main():
348348
fyunit = args.yunit
349349

350350
plt.title("Plot of {} vs {}".format(fxlabel, fylabel), y=1.05)
351-
plt.xlabel((fxlabel + " [" + fxunit + "]") if fxunit != "1" else fxlabel)
352-
plt.ylabel((fylabel + " [" + fyunit + "]") if fyunit != "1" else fylabel)
351+
plt.xlabel((fxlabel + " / " + fxunit) if fxunit != "1" else fxlabel)
352+
plt.ylabel((fylabel + " / " + fyunit) if fyunit != "1" else fylabel)
353353
plt.tight_layout()
354354
fig.savefig(output)
355355

0 commit comments

Comments
 (0)