Skip to content

Make generated pgf code more robust against later changes of tex engine.#26690

Merged
QuLogic merged 1 commit intomatplotlib:mainfrom
anntzer:pgfany
Sep 13, 2023
Merged

Make generated pgf code more robust against later changes of tex engine.#26690
QuLogic merged 1 commit intomatplotlib:mainfrom
anntzer:pgfany

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Sep 4, 2023

By moving the conditionals to tex itself, the generated tex code becomes compilable with engines different from the one originally configured; this is similar to the \ifdefined\pdfpagewidth test in PdfPages.savefig.

PR summary

PR checklist

By moving the conditionals to tex itself, the generated tex code becomes
compilable with engines different from the one originally configured;
this is similar to the `\ifdefined\pdfpagewidth` test in
PdfPages.savefig.
@QuLogic QuLogic added this to the v3.9.0 milestone Sep 13, 2023
@QuLogic QuLogic merged commit e65a4e3 into matplotlib:main Sep 13, 2023
@anntzer anntzer deleted the pgfany branch September 13, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants