[Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
Hi there, I am creating an image with mathplotlib. This image is then shown an a web page. now ma question. the Image is set in a large gray area. I assume it is the space needed for the axis which I do not show. How can I suppress this gray background? thanks robert here the code I use to

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Jeff Whitaker
+- Jeff Whitaker ---+ Jeff, I just had a thought Isn't the country borders drawn as Path or Polygon objects? I believe there are some matplotlib internal functions that can be given a list of points (such as those for a grid) and a path and

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Yoshi Rokuko
+- Jeff Whitaker ---+ Here's the basic idea: 1) read the germany.dat file, use it to create a _geoslib Poly instance, i.e. from mpl_toolkits.basemap import _geoslib b = np.asarray([lons,lats]).T # lons and lats are lists. germanypoly =

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread Benjamin Root
On Saturday, July 23, 2011, robert rottermann rob...@redcor.ch wrote: Hi there, I am creating an image with mathplotlib. This image is then shown an a web page. now ma question. the Image is set in a large gray area. I assume it is the space needed for the axis which I do not show. How can

Re: [Matplotlib-users] [Basemap] contour plot just inside country

2011-07-23 Thread Jeff Whitaker
On 7/23/11 9:32 AM, Yoshi Rokuko wrote: +- Jeff Whitaker ---+ Here's the basic idea: 1) read the germany.dat file, use it to create a _geoslib Poly instance, i.e. from mpl_toolkits.basemap import _geoslib b = np.asarray([lons,lats]).T # lons

[Matplotlib-users] plot() not using alpha value from RGBA tuple

2011-07-23 Thread Ben Breslauer
Hi, I'm trying to fade some data, using alpha values, that I am plotting with Axes.plot(). I can recreate this problem with 1 line of pylab.plot. If I use pylab.plot([1,2,3],[1,4,9], color=(1,0,0,.2), linewidth=7) then I get the equivalent of pylab.plot([1,2,3],[1,4,9], color=(1,0,0),

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of bbox_inches='tight' and that should help get rid of any extra area you may have. Ben Root I tried to follow your advice. however it did not help. This is what I do: - get the current

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread Benjamin Root
On Sat, Jul 23, 2011 at 2:53 PM, robert rottermann robert.rotterm...@gmx.ch wrote: thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of bbox_inches='tight' and that should help get rid of any extra area you may have. Ben Root I

Re: [Matplotlib-users] Some more mplot3d questions

2011-07-23 Thread Benjamin Root
On Thu, Jul 21, 2011 at 7:46 PM, gary ruben gru...@bigpond.net.au wrote: Hi Ben, Comments inline... On Fri, Jul 22, 2011 at 1:31 AM, Benjamin Root ben.r...@ou.edu wrote: On Thu, Jul 21, 2011 at 1:10 AM, gary ruben gary.ru...@gmail.com wrote: I'm trying to make a surface plot using

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
On 23/07/11 23:17, Benjamin Root wrote: On Sat, Jul 23, 2011 at 2:53 PM, robert rottermann robert.rotterm...@gmx.ch mailto:robert.rotterm...@gmx.ch wrote: thanks ben, (sorry for sending answer twice) When you call savefig(), you can pass it the kwarg option of

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread Benjamin Root
On Sat, Jul 23, 2011 at 4:50 PM, robert rottermann robert.rotterm...@gmx.ch wrote: ** On 23/07/11 23:17, Benjamin Root wrote: On Sat, Jul 23, 2011 at 2:53 PM, robert rottermann robert.rotterm...@gmx.ch wrote: thanks ben, (sorry for sending answer twice) When you call savefig(), you