()
| 102 | |
| 103 | |
| 104 | def 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 | |
| 120 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…