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

Function math_role

lib/matplotlib/sphinxext/mathmpl.py:95–104  ·  view source on GitHub ↗
(role, rawtext, text, lineno, inliner,
              options={}, content=[])

Source from the content-addressed store, hash-verified

93
94
95def math_role(role, rawtext, text, lineno, inliner,
96 options={}, content=[]):
97 i = rawtext.find('`')
98 latex = rawtext[i+1:-1]
99 node = latex_math(rawtext)
100 node['latex'] = latex
101 node['fontset'] = options.get('fontset', 'cm')
102 node['fontsize'] = options.get('fontsize',
103 setup.app.config.mathmpl_fontsize)
104 return [node], []
105math_role.options = {'fontset': fontset_choice,
106 'fontsize': validate_float_or_None}
107

Callers

nothing calls this directly

Calls 2

latex_mathClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…