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

Method make_tex

lib/matplotlib/texmanager.py:244–252  ·  view source on GitHub ↗

Generate a tex file to render the tex string at a specific font size. Return the file name.

(cls, tex, fontsize)

Source from the content-addressed store, hash-verified

242
243 @classmethod
244 def make_tex(cls, tex, fontsize):
245 """
246 Generate a tex file to render the tex string at a specific font size.
247
248 Return the file name.
249 """
250 texpath = cls._get_base_path(tex, fontsize).with_suffix(".tex")
251 texpath.write_text(cls._get_tex_source(tex, fontsize), encoding='utf-8')
252 return str(texpath)
253
254 @classmethod
255 def _run_checked_subprocess(cls, command, tex, *, cwd=None):

Callers 1

test_font_selectionFunction · 0.95

Calls 2

_get_base_pathMethod · 0.80
_get_tex_sourceMethod · 0.80

Tested by 1

test_font_selectionFunction · 0.76