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

Function make_icon

tools/make_icons.py:56–61  ·  view source on GitHub ↗
(font_path, ccode)

Source from the content-addressed store, hash-verified

54
55
56def make_icon(font_path, ccode):
57 fig = plt.figure(figsize=(1, 1))
58 fig.patch.set_alpha(0.0)
59 fig.text(0.5, 0.48, chr(ccode), ha='center', va='center',
60 font=font_path, fontsize=68)
61 return fig
62
63
64def make_matplotlib_icon():

Callers 1

make_iconsFunction · 0.85

Calls 3

figureMethod · 0.80
set_alphaMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…