Skip to content

Commit

Permalink
prmon_plot: don't use square brackets around units (#236)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olifre authored Jan 8, 2024
1 parent 4646e6e commit 05939d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/scripts/prmon_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 05939d1

Please sign in to comment.