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]: Hatch linewidths cannot be modified in an rcParam context #21108

Closed
Labels
Milestone
@mwaskom

Description

@mwaskom

Bug summary

The only way (that I am aware of) to control the linewidth of hatches is through an rc parameter. But temporarily modifying the parameter withplt.rc_context has not effect.

Code for reproduction

importmatplotlib.pyplotaspltplt.figure().subplots().bar([0,1], [1,2],hatch=["/","."],fc="r")withplt.rc_context({"hatch.linewidth":5}):plt.figure().subplots().bar([0,1], [1,2],hatch=["/","."],fc="g")plt.rc("hatch",linewidth=5)plt.figure().subplots().bar([0,1], [1,2],hatch=["/","."],fc="b")

Actual outcome

image

image

image

Expected outcome

That second image (the green bars) should have thick hatches.

FWIW I think hatches ought to have an actual API, but given that they don't, this limitation makes themreally hard to work with.

Operating system

macos

Matplotlib Version

3.4.3

Matplotlib Backend

inline

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp