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
+- 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
+- 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 =
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
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
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),
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
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
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
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
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
11 matches
Mail list logo