Skip to content

Commit

Permalink
add units for \sqrt{V}
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Mar 30, 2022
1 parent cf2bc13 commit 6fa4578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awarememristor/plotting/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def axis_label(var_name: str, prepend: str = None, unit_prefix: str = "") -> str
elif var_name == "theoretical-normal-quartiles":
label = "theoretical normal quartiles"
elif var_name == "sqrt(V)":
label = r"$\sqrt{V}$"
label = f"$\\sqrt{{V}}$ ({unit_prefix}$\\mathrm{{V}}^{{0.5}}$)"
elif var_name == "ln(I/V)":
label = r"$\ln(I/V)$"
else:
Expand Down

0 comments on commit 6fa4578

Please sign in to comment.