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

Method set_parse_math

lib/matplotlib/text.py:1508–1518  ·  view source on GitHub ↗

Override switch to disable any mathtext parsing for this `Text`. Parameters ---------- parse_math : bool If False, this `Text` will never use mathtext. If True, mathtext will be used if there is an even number of unescaped dollar signs.

(self, parse_math)

Source from the content-addressed store, hash-verified

1506 return self._usetex
1507
1508 def set_parse_math(self, parse_math):
1509 """
1510 Override switch to disable any mathtext parsing for this `Text`.
1511
1512 Parameters
1513 ----------
1514 parse_math : bool
1515 If False, this `Text` will never use mathtext. If True, mathtext
1516 will be used if there is an even number of unescaped dollar signs.
1517 """
1518 self._parse_math = bool(parse_math)
1519
1520 def get_parse_math(self):
1521 """Return whether mathtext parsing is considered for this `Text`."""

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected