import matplotlib.font_manager
{f.name for f in matplotlib.font_manager.fontManager.ttflist}
Then just choose a name from the set and insert it into a text command, e.g.
import matplotlib.pyplot as plt
plt.ion()
plt.title('title', fontname='FreeSans')
No comments:
Post a Comment