Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Incorrect glyphs selected for angle brackets #18740

Closed as duplicate of#5210
Closed as duplicate of#5210
@anntzer

Description

@anntzer

Bug report

Bug summary

mathtext sometimes selects incorrect glyphs to display angle brackets.

Code for reproduction

frompylabimport*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

test
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:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp