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

Hatch line width ignored with pgf backend #15491

Open
@victorkristof

Description

@victorkristof

Bug report

Bug summary

The hatch line width does not take effect when saving figure with thepgf backend. It is always drawn with a width of 1.

Code for reproduction

importmatplotlib.pyplotaspltimportmatplotlibasmplfrommatplotlib.backends.backend_pgfimportFigureCanvasPgfmpl.backend_bases.register_backend('pdf',FigureCanvasPgf)mpl.rcParams['hatch.linewidth']=0.1plt.bar(1,1,color='white',edgecolor='black',hatch='/')plt.savefig('hatch.pdf')# Hatch line width will be 1.plt.show()# Hatch line width will be 0.1 as expected.

Actual outcome

hatch-bad

Expected outcome

hatch-good

Matplotlib version

  • Operating system: macOS 10.14.6
  • Matplotlib version: 3.1.1
  • Matplotlib backend: pgf
  • Python version: 3.6.3

Matplotlib installed viapip.

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