FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: incorrect placement of superscripts on large delimiters · Issue #28149 · matplotlib/matplotlib · GitHub

Repository navigation

[Bug]: incorrect placement of superscripts on large delimiters #28149

Closed as not planned

Description

Bug summary

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

from matplotlib import pyplot as plt

import matplotlib
#matplotlib.rcParams["text.usetex"] = True
plt.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)

Python version

Python 3.11.5

Jupyter version

No response

Installation

conda

Activity

  1. mendenmh commented on Apr 29, 2024

    Author

    oops, I duplicated #18086 (which is outstanding for a Long time...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL