-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Implement PdfPages for backend pgf #10548
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1571c92
Implement PdfPages for backend pgf
maxnoe 1ce415c
Cleanup tmpdir
maxnoe 455fc0c
Make members private
maxnoe 7757bbc
Do not catch exception
maxnoe b961af4
Fix refactor leftover
maxnoe eb5a385
Use hyperref to set pdf metadata
maxnoe 7c7c135
Make arguments kwargs only
maxnoe 8bfe11e
Use single bytestring
maxnoe 4e55172
Add docs for backend_pgf.PdfPages
maxnoe 3fa4701
Add whats new for backend_pgf.PdfPages
maxnoe e9128a2
pep8
maxnoe 0354d65
Add test for metadata
maxnoe f27d41d
Support also lualatex in backend_pgf.PdfPages
maxnoe 697f75b
Include next_whats_new
maxnoe e410bea
Test for pagecount
maxnoe 871cd5b
PEP8
maxnoe 66db38e
Install texlive-luatex on travis
maxnoe 3496bd4
Support lualatex < 0.85
maxnoe 97cb414
Implement review comments of @jkseppan
maxnoe 476ff78
Make lualatex version functions private
maxnoe 82cf8d0
Merge branch 'master' into pgf_pdf_pages
maxnoe 8cb4d51
Fix merge artifact
maxnoe afc26d8
Implement review comments of @anntzer
maxnoe 0f835a8
Add .pytest_cache to gitignore
maxnoe bc16483
More docs
maxnoe 05e7f77
Add comment in faq
maxnoe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Multipage PDF support for pgf backend | ||
------------------------------------- | ||
|
||
The pgf backend now also supports multipage PDF files. | ||
|
||
.. code-block:: python | ||
|
||
from matplotlib.backends.backend_pgf import PdfPages | ||
import matplotlib.pyplot as plt | ||
|
||
with PdfPages('multipage.pdf') as pdf: | ||
# page 1 | ||
plt.plot([2, 1, 3]) | ||
pdf.savefig() | ||
|
||
# page 2 | ||
plt.cla() | ||
plt.plot([3, 1, 2]) | ||
pdf.savefig() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason why it's not a standard "usepackage[...]{hyperref}"? (perhaps, I dunno)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because People might use hyperref in their rc params latex header and like this it avoids the "hyperref loaded with incompatible options" error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so that's equivalent to "if hyperref is already loaded by the preamble, then merge these options with those passed in the preamble"? (again, just asking)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and the user specified options take precedence.