Wo sucht matplotlib unter Linux nach Schriftarten?
Finden Sie es heraus mit
matplotlib_font_dirs.py
import matplotlib.font_manager
print(matplotlib.font_manager.X11FontDirectories)Auf meinem Ubuntu 22.04 listet dies:
matplotlib_font_dirs_output.py
['/usr/X11R6/lib/X11/fonts/TTF/',
'/usr/X11/lib/X11/fonts',
'/usr/share/fonts/',
'/usr/local/share/fonts/',
'/usr/lib/openoffice/share/fonts/truetype/',
'~/.local/share/fonts',
'~/.fonts']Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow