24 lines
566 B
Plaintext
24 lines
566 B
Plaintext
Fonts for matplotlib
|
|
--------------------
|
|
|
|
Make sure the right fonts are installed:
|
|
```
|
|
sudo apt-get install ttf-lyx2.0
|
|
```
|
|
There is some conflict with `lyx` fonts, so we first remove them
|
|
and remove the matplotlib font cache:
|
|
```
|
|
sudo dpkg --remove --force-depends fonts-lyx
|
|
rm ~/.cache/matplotlib/fontList.cache
|
|
# rm ~/.matplotlib/fontList.cache # older ubuntus
|
|
```
|
|
Then we need to plot something to recreate the matplotlib font cache:
|
|
```
|
|
make cleanplots
|
|
make plots
|
|
```
|
|
To give back the fonts to lyx we reinstall them
|
|
```
|
|
sudo apt-get install fonts-lyx
|
|
```
|