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

Bad rotation_mode/center_baseline combination even if rotation=0 #13028

Closed
Milestone
@stefraynaud

Description

@stefraynaud

Bug report

Bug summary

Whenrotation_mode='anchor' and"verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```.

Code for reproduction

importmatplotlib.pyplotaspltplt.plot([0,1],lw=0)plt.axvline(.5,linewidth=.5,color='.5')plt.axhline(.5,linewidth=.5,color='.5')plt.text(.5,.5,'pP',color='k',size=100,va='center_baseline')plt.text(.5,.5,'pP',color='tab:red',size=100,va='center_baseline',rotation_mode='anchor')

Actual outcome

text_rotation_bug

Expected outcome

text_rotation_bug
Same alignment in this case.

Matplotlib version

  • Operating system: linux
  • Matplotlib version: 3.0.2
  • Matplotlib backend (print(matplotlib.get_backend())): agg, tkagg
  • Python version: 3.6
  • Jupyter version (if applicable):
  • Other libraries:

Installed via conda.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp