Ok, your version is quite old, and might be older than when the bbox_inches='tight' feature was added. Unfortunately, the way savefig was designed, I think it would swallow extra kwargs. > > The current matplotlib is version 1.0.1, and we are getting close to > cutting a new v1.1.0 release. Debian (which Ubuntu is based on), had > a policy conflict with how we packaged our documents and did not > update matplotlib in their repositories (although it should be updated > in time for their next release). I would recommend building from source: > > http://matplotlib.sourceforge.net/users/installing.html#installing-from-source > > Note that you can obtain all of the required packages for building by > running: > > sudo apt-get build-dep python-matplotlib > > and then build matplotlib yourself from source. > > I hope this helps! > Ben Root > > I was barking up the wrong tree..
the picture is saved with imsave correctly (without extra space around it). However I generated it a second time using canvas.tostring_rgb() which I then send to the web server. When I pass a StringIO instance to imsave everything works as expected. thanks again for your help robert ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users