(font_path, ccode)
| 54 | |
| 55 | |
| 56 | def 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 | |
| 64 | def make_matplotlib_icon(): |
no test coverage detected
searching dependent graphs…