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]: PatchCollection fails to keep hatch from Patch #22654

@GYHHAHA

Description

@GYHHAHA

Bug summary

When using add_collection to add Patches, hatch attribute isn't able to kept, whereas add_patch is fine.

Code for reproduction

frommatplotlib.patchesimportRectangleimportmatplotlib.pyplotaspltfrommatplotlib.collectionsimportPatchCollectionfig,ax=plt.subplots(figsize=(4,4))patches= [Rectangle((0,0),0.2,.2,facecolor="orange",hatch="/")]collected_patches=PatchCollection(patches,match_original=True)ax.add_collection(collected_patches)ax.add_patch(Rectangle((0.8,0.8),0.2,0.2,facecolor="skyblue",hatch="/"))

Actual outcome

output

Expected outcome

output2

Additional information

No response

Operating system

No response

Matplotlib Version

3.5.1

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

No response

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