ysl2 / .dotfiles

My dotfiles
2 stars 0 forks source link

debian下安装Times New Roman字体 #43

Open ysl2 opened 9 months ago

ysl2 commented 9 months ago

Ref: https://blog.csdn.net/u014712482/article/details/80568540

sudo apt-get install ttf-mscorefonts-installer
sudo fc-cache -f -v

对于matplotlib或者seaborn,还需要删掉缓存文件夹

import matplotlib as plt
pit.get_cachedir()  # 默认位置是`~/.cache/matplotlib`