Saurav Pathak | 6 Jul 2012 20:36
Favicon

bbox_inches='tight' from the navigation toolbar

Hi,

I would often save figures after show() from the savefig button on the 
navigation toolbar.  I would like to trim white spaces using something 
akin to bbox_inches='tight', but haven't been able to figure out how.  I 
tried adding the following to matplotlibrc, but to no avail:

savefig.bbox_inches : tight

The error message is that savefig.bbox_inches is a bad key

Could someone let me know how to do this, if it can be done?  I am using 
Matplotlib 1.1.0

Thanks,
Saurav

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Jerzy Karczmarczuk | 6 Jul 2012 21:09
Picon
Favicon

Re: bbox_inches='tight' from the navigation toolbar

Saurav Pathak:
I would often save figures after show() from the savefig button on the navigation toolbar. I would like to trim white spaces using something akin to bbox_inches='tight', but haven't been able to figure out how. I tried adding the following to matplotlibrc, but to no avail.
Adjust the position of your 'axes' rectangle, e. g.

from pylab import *
x=linspace(0,4*pi,500); y=sin(x)
axes([0.05,0.05,0.93,0.92])
plot(x,y); show()

the details will depend on the size of your labels.

==

Jerzy Karczmarczuk




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Benjamin Root | 6 Jul 2012 21:49
Picon
Favicon

Re: bbox_inches='tight' from the navigation toolbar



On Fri, Jul 6, 2012 at 2:36 PM, Saurav Pathak <saurav-v1ITN679K0Syum0STUha2w@public.gmane.org> wrote:
Hi,

I would often save figures after show() from the savefig button on the
navigation toolbar.  I would like to trim white spaces using something
akin to bbox_inches='tight', but haven't been able to figure out how.  I
tried adding the following to matplotlibrc, but to no avail:

savefig.bbox_inches : tight

The error message is that savefig.bbox_inches is a bad key

Could someone let me know how to do this, if it can be done?  I am using
Matplotlib 1.1.0

Thanks,
Saurav


Saurav,

Currently, there is no way to do what you want in v1.1.x.  However, I do think it is a reasonable feature request and you should file an issue ticket on the github website.

Cheers!
Ben Root

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Gmane