MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _tex_escape

Function _tex_escape

lib/matplotlib/backends/backend_pgf.py:89–94  ·  view source on GitHub ↗

r""" Do some necessary and/or useful substitutions for texts to be included in LaTeX documents.

(text)

Source from the content-addressed store, hash-verified

87
88
89def _tex_escape(text):
90 r"""
91 Do some necessary and/or useful substitutions for texts to be included in
92 LaTeX documents.
93 """
94 return text.replace("\N{MINUS SIGN}", r"\ensuremath{-}")
95
96
97def _writeln(fh, line):

Callers 1

_escape_and_apply_propsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…