Skip to content

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