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

[Bug]: mathtext not always rendering combining accents in the same way #23257

Open
@oscargus

Description

@oscargus

Bug summary

In the reference figurehttps://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_00.pdf

the dot above the s is differently positioned. Not clear why as the expressions are\dot s and\dot{s} respectively. This doesn't happen to all fonts (maybe only this?).

It also happens in the svg image, although not as clear. Looking at the source, the x-position difference between the accent and character is 54.4 for the left and 57.5 for the right.

Code for reproduction

importmatplotlib.pyplotplt.text(0.5,0.5,r'$\dot s + \dot{s}$')plt.savefig('sdot.pdf')plt.savefig('sdot.svg')

Actual outcome

Different rendering

Expected outcome

Identical rendering

Additional information

No response

Operating system

No response

Matplotlib Version

3.6.0.dev2642+g25292618a9.d20220612

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    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