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]: Alignment of minus sign when using LaTeX #28766

Open
@johannfaouzi

Description

@johannfaouzi

Bug summary

There seems to be a different alignment for the minus sign depending on if the string contains only the minus sign or more characters when LaTeX is used.

Code for reproduction

importmatplotlib.pyplotaspltplt.rcParams.update({"text.usetex":True})plt.text(0,0,'$-3$',fontsize=40)plt.text(0.2,0,'$-$',fontsize=40)plt.text(0.28,0,'$3$',fontsize=40)plt.ylim(-0.1,0.1);plt.axis('off');

Actual outcome

actual_output

Expected outcome

expected_output

Additional information

No response

Operating system

macOS Sonoma 14.6.1

Matplotlib Version

3.9.2

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.10.13

Jupyter version

6.5.4

Installation

conda

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