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

path.sketch doesn't apply to PolyCollection #19693

Closed
@story645

Description

@story645

Bug report

Bug summary
PolyCollection lines aren't affected by changes to the path.sketch rcparam, even though patches
are-the docs say that polycollection defaults to patch RC params
image

Code for reproduction

importnumpyasnpimportmatplotlib.collectionsasmcollectionsimportmatplotlib.patchesasmpatchesimportmatplotlib.pyplotaspltfrommatplotlibimportrcParamsrcParams['path.sketch']= (.5,25,20)fig, (ax1,ax2)=plt.subplots(ncols=2)f1=mpatches.Rectangle((.25,.25),.5,.5,facecolor='white',edgecolor='C0',linewidth=2)ax1.add_patch(f1)verts=np.array([[[1,-1], [1,1], [2.4,1.5], [2.4,-.5]],                 [[-.4,1.5],[-.4,-.5],[1,-1],[1,1]],                 [[-.4,1.5], [1,2],[2.4,1.5], [1,1]]])verts2=verts*.25+ [.3]p=mcollections.PolyCollection(np.vstack([verts,verts2]),facecolor='white',edgecolor='C0',linewidth=2)ax2.add_collection(p)

Matplotlib version

  • Matplotlib version (import matplotlib; print(matplotlib.__version__)): 3.3.4
  • Matplotlib backend (print(matplotlib.get_backend())): jupyter inline

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