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]: Artefacts on Agg backend when using stroke with a large linewidth #25669

Open
@cphyc

Description

@cphyc

Bug summary

When using theStroke path effect with a large linewidth, there are artefacts appearing here and there in the form of "wholes" in the outline.

Code for reproduction

importmatplotlib.pyplotaspltfrommatplotlibimportpatheffectsfig,ax=plt.subplots(1,1)text=ax.text(.5,.5,'-x.',color='red',ha='center',va='center',size=20)text.set_path_effects([patheffects.Stroke(linewidth=30,foreground='black'),patheffects.Normal()])fig.savefig("this_produces_artefacts.png")fig.savefig("this_is_fine.svg")

Actual outcome

bug

Expected outcome

nobug

Additional information

The artefacts only appear when using the QtAgg backend or exporting as png. However, the output when using SVG is fine.

The artefacts only appear when the stroke linewidth becomes large enough for the outline of one letter to overlap with the outline of another.

Operating system

Arch

Matplotlib Version

3.7.1

Matplotlib Backend

QtAgg

Python version

3.10.10

Jupyter version

No response

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