Skip to content

Commit eaa46c8

Browse files
author
Gorshanov Vadim
committed
Replace number+cc to the correct SI command
1 parent 60be73c commit eaa46c8

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
@@ -20,6 +20,7 @@ def _siunitx_texification(string: str) -> str:
2020
string = re.sub(r"\sAngstrom", r" \\si{\\angstrom}", string)
2121
string = re.sub(r"\sg/s", r" \\si{\\gram\\per\\second}", string)
2222
string = re.sub(r"\shour", r" \\si{\\hour}", string)
23+
string = re.sub(r"(\d+(\.\d+)?)\s?cc", r"\\SI{\1}{\\cc}", string)
2324
string = re.sub(r"\scc", r" \\si{\\cc}", string)
2425
string = re.sub(r"\s\\%", r" \\si{\\percent}", string)
2526
string = re.sub(r"\sg/um", r" \\si{\\g\\per\\um}", string)

0 commit comments

Comments
 (0)