Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a22443f + b4a067a commit e78a098Copy full SHA for e78a098
1 file changed
examples/text_labels_and_annotations/font_table.py
@@ -14,6 +14,7 @@
14
python font_table.py /path/to/font/file
15
"""
16
17
+import os
18
import unicodedata
19
20
import matplotlib.font_manager as fm
@@ -84,7 +85,7 @@ def draw_font_table(path):
84
85
chars[row][col] = chr(char_code)
86
87
fig, ax = plt.subplots(figsize=(8, 4))
- ax.set_title(path)
88
+ ax.set_title(os.path.basename(path))
89
ax.set_axis_off()
90
91
table = ax.table(
0 commit comments