Bounding box no longer works for EPS files if usetex=True

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_axes([0.1,0.1,0.3,0.3])
fig.savefig('test.eps', bbox_inches='tight')

---

This produces a file that does not have the right bounding box (it's as if I wasn't specifying bbox_inches=True). Can anyone else reproduce this issue? If so, I'll open a ticket.

Thanks,
Tom

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:

Cheers,
Tom
Hello,

···

On Friday, April 15, 2011 at 7:22 PM, Thomas Robitaille wrote:

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_axes([0.1,0.1,0.3,0.3])
fig.savefig('test.eps', bbox_inches='tight')

---

This produces a file that does not have the right bounding box (it's as if I wasn't specifying bbox_inches=True). Can anyone else reproduce this issue? If so, I'll open a ticket.

Thanks,
Tom