Leaklens

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 + '}

The text states the fix: “def _wrap_in_tex(text): text = text.replace('-', '{-}').replace(":", r"{:}").replace(" ", r"\;") return '$\\mathdefault{' + text + '}

”

All SWE-bench Verified tasks · more matplotlib/matplotlib tasks · How the check works