|
From: Michael B. <mb...@jp...> - 2005-06-28 16:31:51
|
On Tue, 28 Jun 2005, Jeff Whitaker wrote: > John: OK, I've fixed it so pylab is not imported at all if either (1) the > 'ax' keyword is used in Basemap.__init__ (in which case only one axes > instance is used by that Basemap instance), or (2) the 'ax' keyword is used > in all Basemap method calls that do drawing (in which case different axes may > be used by the same Basemap instance). If you don't use the 'ax' keyword, > basemap methods behave like their pylab counterparts (i.e. pylab.gca is used > to get the current axis). Great! That's perfect for us. Thanks for the quick response. We have exactly the setup that John was describing. We use Basemap in cron jobs that don't have any X windows support. Our default backend is Qt, and Qt itself aborts and core dumps (!) if you try to use it when there's no X server present. So we wanted to avoid pylab loading a backend. I guess we'll see these changes in the next release, 0.5.2 or 0.6, whichever is next, yes? Thanks again, Michael ======================================================================== Michael Brady Jet Propulsion Laboratory (M/S 301-140L) 4800 Oak Grove Drive Pasadena, CA 91109 E-mail: Mic...@jp... ======================================================================== |