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

Thin space missing after mathtext operators #17852

Closed
Labels
Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!topic: text/mathtext
Milestone
@anntzer

Description

@anntzer

Bug report

Bug summary

Mathtext operators (\log,\max, etc.) should insert a thin space after themselves (if followed by ordinary characters, not if followed by an open parenthesis, seehttps://tex.stackexchange.com/questions/225922/spacing-rules-for-operatorname/225924#225924), but currently it does not.

Code for reproduction

frompylabimport*figtext(.5,.6,r"$\log 6$ (usetex)",usetex=True)figtext(.5,.5,r"$\log 6$ (current)")figtext(.5,.4,r"$\mathdefault{log}\,6$ (manual thin space)")figtext(.5,.3,r"$\mathdefault{log}\ 6$ (manual full space)")show()

Actual outcome

out
Note the missing thin space between "g" and "6" in the current behavior.

Matplotlib version

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!topic: text/mathtext

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp