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

Sketch params ignored when using PGF backend #20516

Closed
Milestone
@takimata

Description

@takimata

Bug report

Bug summary
Calls toset_sketch_params() are ignored by the PGF backend and do not have any influence in the resulting pgf or pdf file.

Code for reproduction

#!/usr/bin/env python3importmatplotlibasmplimportmatplotlib.pyplotaspltmpl.use("pgf")mpl.rcParams.update({'font.family':'serif','text.usetex':True,'pgf.rcfonts':False,'pgf.preamble': [# enable this when using PGF backend with pdf output:#r"\usepackage{pgf}",#r"\usepgfmodule{decorations}",#r"\usepgflibrary{decorations.pathmorphing}",        ],})fig=plt.figure()ax=fig.add_subplot(111)ax.plot(range(10))ax.spines["bottom"].set_sketch_params(scale=5,length=10,randomness=42)fig.savefig(f"foo.pgf")#fig.savefig(f"foo.pdf")

Actual outcome
grafik

Expected outcome
grafik

Matplotlib version

  • Matplotlib version: '3.0.2'

I am working on a fix for this.

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