Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 838 Bytes

matplotlib.md

File metadata and controls

26 lines (20 loc) · 838 Bytes

-- 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

How to fix "Times New Roman" font in Linux

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()