Skip to content

Commit 6246102

Browse files
author
Gorshanov Vadim
committed
Add the g/um as a supported Si unit
1 parent 5d81feb commit 6246102

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tikzplotlib/_axes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def _siunitx_texification(string: str) -> str:
2121
string = re.sub(r"\shour", r" \\si{\\hour}", string)
2222
string = re.sub(r"\scc", r" \\si{\\cc}", string)
2323
string = re.sub(r"\s\\%", r" \\si{\\percent}", string)
24+
string = re.sub(r"\sg/um", r" \\si{\\g\\per\\um}", string)
2425
return string
2526

2627

0 commit comments

Comments
 (0)