Jesper Larsen wrote: > On Monday 07 May 2007 16:02, Jesper Larsen wrote: > >> The deepcopy operation takes almost as much time as creating a new basemap >> instance. If the basemap instance was unchanged by my plotting I would of >> course be able to avoid doing this and simply use a basemap instance >> without copying it. Am I right in asserting that this is not the case? Any >> suggestions on how to avoid deepcopying it? >> > > I forgot to mention that the reason I have to deepcopy it is that I cannot > use > the basemap methods: > > drawparallels() > drawmeridians() > fillcontinents() > drawcoastlines() > > without an axes instance which is again tied to a figure instance. These > methods seem to modify the basemap instance (as far as I recall). > > - Jesper > >
Jesper: Can you be more specific about why you need a deepcopy? Those methods you mention do not modify the Basemap instance, although they do modify the axes instance they are used with. It shouldn't be a problem reusing the Basemap instance with a new axes instance (without using using deepcopy). -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED] 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users