matplotlib__matplotlib-21568
[Bug]: Datetime axis with usetex is unclear
Verdict: the fix is stated in the issue (Tier A).
def _wrap_in_tex(text): text = text.replace('-', '{-}').replace(":", r"{:}").replace(" ", r"\;") return '$\\mathdefault{' + text + '}