You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: incorrect placement of superscripts on large delimiters #28149
The code below does not place the superscript at the top of the large right square bracket. It works fine if text.usetex in enabled (and the dollar signs are doubled for display mode).
Code for reproduction
frommatplotlibimportpyplotaspltimportmatplotlib#matplotlib.rcParams["text.usetex"] = Trueplt.plot([22,36],[0,1])
plt.text(23,0.8,'${\\left[\\sum_{i=1}^{n}{\\cos 2 k x_{i}}\\right]}^{2}$')
plt.show()
Actual outcome
Expected outcome
Additional information
No response
Operating system
Mac OS
Matplotlib Version
3.7.2
Matplotlib Backend
'module://matplotlib_inline.backend_inline' (but pdf fails the same way)
Activity
mendenmh commentedon Apr 29, 2024
oops, I duplicated #18086 (which is outstanding for a Long time...)