Open
Description
Bug report
Bug summary
When using the star (*) symbol in a text
box, it cuts off the bottom of the text when saved (savefig
). This is only the case when usetex=False
in rcParams
.
Code for reproduction
import matplotlib
import matplotlib.pyplot as plt
from matplotlib import rc
rc('text', usetex=False)
fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{*} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')
You can see the bottom of the text box is cut off. Whereas this plots fine:
fig, ax = plt.subplots(1,1)
ax.text(0.5, 0.5, '$S_{ome} M^{ath}$ and some not math',
transform=ax.transAxes)
plt.savefig('test1.png', bbox_inches='tight')
Matplotlib version
- Operating system: Unix
- Matplotlib version: 3.1.1
- Matplotlib backend (
print(matplotlib.get_backend())
): TkAgg - Python version: Python 3.6.8 (default, Apr 25 2019, 21:02:35)
matplotlib installed from pip
- Other libraries:
cycler==0.10.0
kiwisolver==1.1.0
numpy==1.17.2
pyparsing==2.4.2
python-dateutil==2.8.0
six==1.12.0