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

Function make_icons

tools/make_icons.py:104–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102
103
104def make_icons():
105 parser = ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
106 parser.add_argument(
107 "-d", "--dest-dir",
108 type=Path,
109 default=Path(__file__).parent / "../lib/matplotlib/mpl-data/images",
110 help="Directory where to store the images.")
111 args = parser.parse_args()
112 font_path = get_fontawesome()
113 for name, ccode in icon_defs:
114 fig = make_icon(font_path, ccode)
115 save_icon(fig, args.dest_dir, name, True)
116 fig = make_matplotlib_icon()
117 save_icon(fig, args.dest_dir, 'matplotlib', False)
118
119
120if __name__ == "__main__":

Callers 1

make_icons.pyFile · 0.85

Calls 5

PathClass · 0.85
get_fontawesomeFunction · 0.85
make_iconFunction · 0.85
save_iconFunction · 0.85
make_matplotlib_iconFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…