I am plotting data with matplotlib including LaTeX fonts. The pdf created can be displayed by evince, inkscape, GIMP but not by acroread resp. adobe reader. The code prototy
After chasing my own bug in matplotlib I figured out based on this post and the referral the OP makes at matplotlib site that chasing bugs in matplotlib can be done with cairo. pip install cairo
. Then on top of all other MPL imports add:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ...
import matplotlib
matplotlib.use("cairo")
from matplotlib.backends.backend_pdf import PdfPages
..etc.
otherwise the chase will fail because the backend is already set and loaded....