Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and the previous letter is cut off. This is similar to#4428, so apparently the issue has not been resolved.
Example:
import matplotlib.pyplot as pltfig1 = plt.figure()ax1 = fig1.add_subplot(111)ax1.axis([0, 5, 0, 5])ax1.text(2,4, '$X_-$', fontsize=25)ax1.text(4,4, '$X_+$', fontsize=25)ax1.text(2,2, '$X_*$', fontsize=25)fig2 = plt.figure(dpi=600)ax2 = fig2.add_subplot(111)ax2.axis([0, 5, 0, 5])ax2.text(2,4, '$X_-$', fontsize=25)ax2.text(4,4, '$X_+$', fontsize=25)ax2.text(2,2, '$X_*$', fontsize=25)
I am using matplotlib 3.3.2 with Python 3.7.8.