Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Sappy85
Hi, creating a pickle of the Basmap instance was the correct way. Now it works great! Thank's all for that quick and helpful support! Solution as follows: m = Basemap (...) pickle.dump(m,open('map.pickle','wb'),-1) # pickle it for ... :# loop to generate x plots pickle.load(open('map.

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Eric Firing
On 2015/01/24 6:11 AM, Sappy85 wrote: > I would like to draw very, very simple maps of only europe in matplotlib / > basemap, which takes very much time (around 10 seconds!). This is just > unreal!? Setting of resolution is only "l" (low). > I need to plot hundreds of those maps every few hours. Th

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Sappy85
Hi Ben, i run the process as user "root" on a virtual linux server. Is this a problem? -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Plotting-maps-with-matplotlib-basemap-very-slow-tp44755p44759.html Sent from the matplotlib - users mailing list archive at Nabble.

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Benjamin Root
10 seconds? That doesn't seem right. Are you running the process as an apache user or something without a home directory? I suspect that the font cache is not being created, and so it is having to build the font listing every time it starts up. Ben Root On Jan 24, 2015 1:02 PM, "Sappy85" wrote:

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Sappy85
Hi, yes that helps a lot, reading in the boundaries from a shapefile. But does anybody know, how avoid the "double inner borders"? Coastlines seem to have a thinner border. Borders between two countries be drawn twice. Regards --

Re: [Matplotlib-users] Plotting maps with matplotlib-basemap very slow

2015-01-24 Thread Christian Alis
Hi, Have you considered reading from a suitably low-resolution shapefile instead? I suppose overlays or colors change per generation but not the geographical area. Cheers, Christian On Sat, Jan 24, 2015 at 4:11 PM, Sappy85 wrote: > I would like to draw very, very simple maps of only europe in