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

Incomplete Text Render when Chinese and English characters are used together in an upright vertical way #20419

Closed
@EllenGYY

Description

@EllenGYY

Bug report

Bug summary

Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show the left half.

Code for reproduction

importmatplotlib.pyplotaspltplt.rcParams['font.sans-serif']= ['SimHei']plt.text(0,0,'\n'.join("现代美学"))#all chinese is fineplt.text(0.2,0,'\n'.join("hello world 123"))# all english/number is fineplt.text(0.4,0,'\n'.join("现代hello美学"))#a mixture results in incomplete render of the chinese characters after the English charsplt.show()

Actual outcome

https://i.imgur.com/BXWiW0H.png

Expected outcome

https://i.imgur.com/9syXGpC.jpeg

Matplotlib version

  • Operating system: windows 10
  • Matplotlib version: 3.11
  • Matplotlib backend: module://ipykernel.pylab.backend_inline
  • Python version: 3.7.4
  • Jupyter version (if applicable): 6.0.1
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp