-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
Milestone
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
import matplotlib.pyplot as plt
plt.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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done

