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 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 can pass i

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 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 > bbox_inches='tight' and that should

Re: [Matplotlib-users] Some more mplot3d questions

2011-07-23 Thread Benjamin Root
On Thu, Jul 21, 2011 at 7:46 PM, gary ruben wrote: > Hi Ben, > Comments inline... > > On Fri, Jul 22, 2011 at 1:31 AM, Benjamin Root wrote: > > > > > > On Thu, Jul 21, 2011 at 1:10 AM, gary ruben > wrote: > >> > >> I'm trying to make a surface plot using the latest version of mplot3d > >> from

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 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 tried to foll

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 curren

[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), linewid

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,la

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

2011-07-23 Thread Benjamin Root
On Saturday, July 23, 2011, robert rottermann 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 I suppress

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. > germany

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 i

[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 crea