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

Incorrect glyphs selected for angle brackets · Issue #18740 · matplotlib/matplotlib · GitHub

Repository navigation

Incorrect glyphs selected for angle brackets #18740

Closed as duplicate
Closed as duplicate

Description

Bug report

Bug summary

mathtext sometimes selects incorrect glyphs to display angle brackets.

Code for reproduction

from pylab import *

figtext(.2, .7,
        r"$\left<?\right>"
        r"\left\langle?\right\rangle$") \
    .set_math_fontfamily("custom")
figtext(.2, .3,
        r"$\left<\frac{\sum_{0}^{1}}{\sum_{0}^{1}}\right>"
        r"\left\langle\frac{\sum_{0}^{1}}{\sum_{0}^{1}}\right\rangle$") \
    .set_math_fontfamily("cm")
show()

Actual outcome


The glyphs for the small \left<\right> when using "custom" mathtext.fontset and the large \left\langle\right\rangle when using "cm" mathtext.fontset are wrong.

Expected outcome

Correct glyphs.

I have some ideas on how to fix this, but would rather wait for mathtext to go fully private (i.e. 3.6) instead of jumping through hoops and hoops of backcompat layers... (but if anyone else wants to have a go at it before then, please do)

Matplotlib version

  • Operating system: fedora
  • Matplotlib version: head
  • Matplotlib backend (print(matplotlib.get_backend())): agg
  • Python version: 38
  • Jupyter version (if applicable):
  • Other libraries:

Activity

  1. github-actions commented on Aug 28, 2023

    This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

  2. added
    keepItems to be ignored by the “Stale” Github Action
    and removed
    status: inactiveMarked by the “Stale” Github Action
    on Aug 28, 2023
  3. oscargus commented on Aug 28, 2023

    Member

    The bug is still there and there is a PR for it, so keep it until fixed.

  4. self-assigned this
    on Apr 17, 2025
  5. QuLogic commented on Apr 17, 2025

    Member

    This is a duplicate of #5210.

  6. added and removed
    keepItems to be ignored by the “Stale” Github Action
    on Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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