Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Bug summary
There seems to be a different alignment for the minus sign depending on if the string contains only the minus sign or more characters when LaTeX is used.
Code for reproduction
importmatplotlib.pyplotaspltplt.rcParams.update({"text.usetex":True})plt.text(0,0,'$-3$',fontsize=40)plt.text(0.2,0,'$-$',fontsize=40)plt.text(0.28,0,'$3$',fontsize=40)plt.ylim(-0.1,0.1);plt.axis('off');
Actual outcome
Expected outcome
Additional information
No response
Operating system
macOS Sonoma 14.6.1
Matplotlib Version
3.9.2
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.10.13
Jupyter version
6.5.4
Installation
conda