Re: [Matplotlib-users] setting figure extent to only include extent of Axes

2007-12-12 Thread Jeff Whitaker
Michael Hearne wrote: > All: I have an issue I'm hoping someone here can help with. I've > created a encapsulated postscript figure from pylab (basemap, > actually, but it shouldn't make a difference), and I'd like to have > the entire saved image be the extent of the axes, with no border > w

Re: [Matplotlib-users] setting figure extent to only include extent of Axes

2007-12-12 Thread Michael Droettboom
You can set the position of the axes with "set_position" and give it a list of the form [l, b, w, h], where the values range from 0 to 1. e.g.: gca().set_position([0, 0, 1, 1]) Cheers, Mike Michael Hearne wrote: > All: I have an issue I'm hoping someone here can help with. I've > created

[Matplotlib-users] setting figure extent to only include extent of Axes

2007-12-12 Thread Michael Hearne
All: I have an issue I'm hoping someone here can help with. I've created a encapsulated postscript figure from pylab (basemap, actually, but it shouldn't make a difference), and I'd like to have the entire saved image be the extent of the axes, with no border whatsoever. Is there a way t