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. This would be
impossible!!?
Here is the very simple code:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
m = Basemap(projection='stere',lon_0=5,lat_0=90.0,rsphere=6371200.,\
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 <robert.wittkopf@...380...> 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. This would be
impossible!!?
Here is the very simple code:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
m = Basemap(projection='stere',lon_0=5,lat_0=90.0,rsphere=6371200.,\
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options
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” <robert.wittkopf@…380…> wrote:
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.
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. This would be
impossible!!?
Here is the very simple code:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
m = Basemap(projection='stere',lon_0=5,lat_0=90.0,rsphere=6371200.,\
You can save a lot of time by pickling the Basemap instance at this point, saving it to a cache. Then the next time, just pickle.load it from the cache.
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net matplotlib-users List Signup and Options