README for matplotlib fonts problemns

This commit is contained in:
Jan Benda 2019-12-02 13:04:32 +01:00
parent 2eaddbf90b
commit bfad4ac339
7 changed files with 32 additions and 5 deletions

View File

@ -36,6 +36,9 @@ watchpdf :
watchscript :
while true; do ! make -s -q script && make script; sleep 0.5; done
cleanplots:
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture cleanplots; done
cleantex:
rm -f *~ $(BASENAME).aux $(BASENAME).log $(BASENAME).out $(BASENAME)-solutions.tex $(BASENAME).toc $(BASENAME).lo? $(BASENAME).idx $(BASENAME)-term.i* $(BASENAME)-enterm.i* $(BASENAME)-code.i*
for sd in $(SUBDIRS); do $(MAKE) -C $$sd/lecture cleantex; done

23
README.fonts Normal file
View File

@ -0,0 +1,23 @@
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
```

View File

@ -47,8 +47,9 @@ cleantex:
rm -f $(BASENAME).aux $(BASENAME).log
rm -f $(BASENAME)-chapter.aux $(BASENAME)-chapter.log $(BASENAME)-chapter.out $(BASENAME)-chapter.idx $(BASENAME)-solutions.tex $(BASENAME)-solutions.tex
cleanplots: cleanpythonplots cleangnuplots
cleanchapter : cleanpythonplots cleangnuplots cleantex
cleanchapter : cleanplots cleantex
cleanallchapter : cleanchapter

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchA.tex
%%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Mon Dec 2 10:40:01 2019
%%CreationDate: Mon Dec 2 13:03:15 2019
%%DocumentFonts:
%%BoundingBox: 50 50 373 135
%%EndComments
@ -433,7 +433,7 @@ SDict begin [
/Author (benda)
% /Producer (gnuplot)
% /Keywords ()
/CreationDate (Mon Dec 2 10:40:01 2019)
/CreationDate (Mon Dec 2 13:03:15 2019)
/DOCINFO pdfmark
end
} ifelse

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchB.tex
%%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Mon Dec 2 10:40:01 2019
%%CreationDate: Mon Dec 2 13:03:15 2019
%%DocumentFonts:
%%BoundingBox: 50 50 373 237
%%EndComments
@ -433,7 +433,7 @@ SDict begin [
/Author (benda)
% /Producer (gnuplot)
% /Keywords ()
/CreationDate (Mon Dec 2 10:40:01 2019)
/CreationDate (Mon Dec 2 13:03:15 2019)
/DOCINFO pdfmark
end
} ifelse