Skip to content

Commit 7ba04ed

Browse files
author
Gorshanov Vadim
committed
Replace deg with siunitx in siunitxtexification
1 parent 4f21b09 commit 7ba04ed

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
@@ -24,6 +24,7 @@ def _siunitx_texification(string: str) -> str:
2424
string = re.sub(r"\scc", r" \\si{\\cc}", string)
2525
string = re.sub(r"\s\\%", r" \\si{\\percent}", string)
2626
string = re.sub(r"\sg/um", r" \\si{\\g\\per\\um}", string)
27+
string = re.sub(r"(\d+(\.\d+)?)\s?deg", r"\\SI{\1}{\\degree}", string)
2728
return string
2829

2930

0 commit comments

Comments
 (0)