Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Add support for pgf.documentclass rcParam#30063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changes fromall commits
23e0b0c
e8f44bc
1bf0be7
89f6d80
6d48325
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PGF backend: new rcParam :rc:`pgf.documentclass` | ||
------------------------------------------------ | ||
A new rcParam :rc:`pgf.documentclass` has been added to allow users to override | ||
the default LaTeX document class (``article``) used by the PGF backend. | ||
This enables better compatibility when including PGF figures in documents that | ||
use custom LaTeX classes like ``IEEEtran`` or others, avoiding layout | ||
issues like incorrect font sizes or spacing mismatches. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -958,6 +958,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): | ||
# Strip leading comment. | ||
transform=lambda line: line[1:] if line.startswith("#") else line, | ||
fail_on_error=True) | ||
rcParamsDefault["pgf.documentclass"] = "article" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The default value should go inhttps://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/mpl-data/matplotlibrc | ||
rcParamsDefault._update_raw(rcsetup._hardcoded_defaults) | ||
rcParamsDefault._ensure_has_backend() | ||
Uh oh!
There was an error while loading.Please reload this page.