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

[ENH]: Allow a custom documentclass when using the pgf backend. #28119

Open
@voidstarstar

Description

@voidstarstar

Problem

In general, the process of producing a quality pgf file is confusing and not very intuitive to me. As a user, my ultimate goal is to be able to generate a pgf file that can be inputted into my own custom LaTeX document such that this final rendered plot looksidentical to how matplotlib renders it internally. This internal rendering is what decides the position of labels, ticks, etc. so it is important that there is perfect consistency between this first internal rendering and my second final rendering. Achieving this consistency is very difficult when using a customdocumentclass. From what I understand, there's no way to set whatdocumentclass is used for the internal rendering as it appears to be hard coded asarticle. When using a complicateddocumentclass, it can become nearly impossible to track down every package, etc. that is used.

Related:
#28112
#26892
#26893
#26791
#14637

Proposed solution

Is there any reason why thisdocumentclass can't be provided by the user? I would suggest the following:
When saving a pgf, simply allow the user to specify an optionalpgf.documentclass rcParam and usearticle as the default. (I assume this needs to be done separately from thepgf.preamble rcParam since it looks like matplotlib inserts other LaTeX commands between thedocumentclass and user provided preamble, but I may be wrong.)

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