It seems this stopped working after commit r8906 (svn) or
32f64b01c98d1e3b51be57ab49c899cf91017817:
r8906 | efiring | 2011-01-11 21:53:37 -1000 (Tue, 11 Jan 2011) | 2 lines
Fix eps distillation bbox bug; closes 3032385
I have opened a ticket on GitHub:
https://github.com/matplotlib/matplotlib/
Hello,
It seems that at some point in the last few months a change was made that means
that the following code no longer works properly:
---
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
mpl.rc('text', usetex=True)
fig = plt.figure()
ax = fig.add_a