[Users] [Commits] [svn:einsteintoolkit] manifest/trunk/ (Rev. 226)
Roland Haas
roland.haas at physics.gatech.edu
Sat Apr 6 02:16:06 CDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Frank,
>> Re my own commit with the cropping script: it crops pdf files to
>> remove white border. All automated. Isn't it a beauty to read?
>> :-)
>
> Where do these borders come from? Given the beauty of the script I
> guess there is no easier option to not have them created in the
> first place? :)
Matplotlibs savefig has an option to get tight bounding boxes
http://stackoverflow.com/questions/3130072/matplotlib-savefig-image-trim
though using only removes the whitespace on the right hand side.
Using pdfcrop (which is reasonably sane, it's just the bash script in
a makefile using gawk which is somewhat horrible) just seemed like
safer/faster way of getting rid of any white space around plots.
Yours,
Roland
- --
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://keys.gnupg.net.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlFfy7IACgkQTiFSTN7SboUfxACgnfUEbQNlebYja5EZ57DygMEk
FcMAn2RHj0dlQQhg+pCSqf5chB7PGB/z
=sWkz
-----END PGP SIGNATURE-----
More information about the Users
mailing list