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

[FR] Setting PDF backend in matplotlibrc/style #13994

Closed as not planned
Closed as not planned
@ArchangeGabriel

Description

@ArchangeGabriel

Now that#12674 landed, myhelper script has considerably shrinked and is now reduced to:

import matplotlib as mplfrom matplotlib.backends.backend_pgf import FigureCanvasPgfmpl.backend_bases.register_backend('pdf', FigureCanvasPgf)import matplotlib.pyplot as pltplt.style.use('pdf')

Could there be a way that using such apdf style could do this backend registration? IIRC the biggest hurdle was that the backend must be registered before importing pyplot, but maybe things have (or could be) changed so that we could register thepgf backend for PDF output in matplotlibrc/style configuration files. The end goal for me is getting right of this helper and just have

import matplotlib.pyplot as pltplt.style.use('pdf')

at the beginning of my notebooks. ;)

Thanks for consideration.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp