-- Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib makes easy things easy and hard things possible.
Useful resources: cheatsheets Example Documentation
Step 1: Install this font on your computer:
sudo apt install msttcorefonts -qq
rm ~/.cache/matplotlib -rf
Step 2: If texts in the generated figures are bolded, you can copy the following to your code and run again. The following code only need once.
import matplotlib
del matplotlib.font_manager.weight_dict['roman']
matplotlib.font_manager._rebuild()