|
From: Christian A. <ia...@gm...> - 2015-01-24 16:28:21
|
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 <rob...@gm...> 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.,\
>
> llcrnrlon=-25.0,urcrnrlon=72.0,llcrnrlat=26.0,urcrnrlat=65.0,resolution='l')
>
> m.drawcoastlines(linewidth=0.2)
> m.drawcountries(linewidth=0.2)
> plt.savefig('/var/www/map.png')
>
>
> Hope you can help! :(
>
> Regards
>
>
>
>
>
> --
> View this message in context: http://matplotlib.1069221.n5.nabble.com/Plotting-maps-with-matplotlib-basemap-very-slow-tp44755.html
> Sent from the matplotlib - users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> 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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|