Skip to content
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

support tight_bbox for pgf output, fixes #2342 #2391

Merged
merged 1 commit into from Sep 10, 2013
Merged

support tight_bbox for pgf output, fixes #2342 #2391

merged 1 commit into from Sep 10, 2013

Conversation

pwuertz
Copy link
Contributor

@pwuertz pwuertz commented Sep 7, 2013

EDIT:

Instead of modifying tight_bbox, I added support for the dryrun kwarg used by tight_bbox to announce the dummy draw procedure. Saving figures with bbox_inches='tight' now works for pgf files as well (fixes #2342).

@pwuertz
Copy link
Contributor Author

pwuertz commented Sep 7, 2013

@mdboom Since this patch is pretty much restricted to backend_pgf.py, I'll apply this patch to master and v1.3.x in a few days if there is no objection.

@mdboom
Copy link
Member

mdboom commented Sep 9, 2013

👍 Looks good to me.

pwuertz added a commit that referenced this pull request Sep 10, 2013
 support tight_bbox for pgf output, fixes #2342
@pwuertz pwuertz merged commit f37df88 into matplotlib:master Sep 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

savefig PGF - RuntimeError: Cannot get window extent w/o renderer
2 participants