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

Subscripts not displayed correctly for high dpi #18899

Closed
@swish42

Description

@swish42

Some subscripts seem to be incorrectly displayed in figures with high pixel density. For example, subscript + is shown correctly even for dpi=600, while subscript - or * are not shown correctly and the previous letter is cut off. This is similar to#4428, so apparently the issue has not been resolved.
Example:

import matplotlib.pyplot as pltfig1 = plt.figure()ax1 = fig1.add_subplot(111)ax1.axis([0, 5, 0, 5])ax1.text(2,4, '$X_-$', fontsize=25)ax1.text(4,4, '$X_+$', fontsize=25)ax1.text(2,2, '$X_*$', fontsize=25)fig2 = plt.figure(dpi=600)ax2 = fig2.add_subplot(111)ax2.axis([0, 5, 0, 5])ax2.text(2,4, '$X_-$', fontsize=25)ax2.text(4,4, '$X_+$', fontsize=25)ax2.text(2,2, '$X_*$', fontsize=25)

produces
correct
error

I am using matplotlib 3.3.2 with Python 3.7.8.

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