From: Jeff W. <js...@fa...> - 2006-04-26 20:32:44
|
Glen W. Mabey wrote: > On Wed, Apr 26, 2006 at 01:43:30PM -0600, Jeff Whitaker wrote: > >> Glen W. Mabey wrote: >> >>> Hello, >>> >>> I'm trying to follow the basemap examples in using basemap as a >>> matplotlib widget within a Qt-based application. Taking the example >>> code >>> simpletest_oo.py >>> and modifying it to target QtAgg instead, I only get the lat/long lines, >>> as in the attached .png. The original example does draw all of the >>> continent lines and country boundaries correctly on my system. >>> >>> I'm using matplotlib and basemap svn of 25 Apr 2006; the same results >>> were produced with 0.87.2 / 0.8.2 . >>> >>> If anyone can see something obvious that I'm leaving out, I would really >>> appreciate a hint as to why the continents, countries, etc. are not >>> getting drawn. >>> >>> Thank you! >>> Glen Mabey >>> >>> >>> >> Glen: I can't run your example, since I don't have all the dependencies >> (such as mplwidget and justaplot_designer). >> > > Oh, whoops. I thought I had everything in there. Here it is, in a > single file: > > > ....(snipped).... > I think I'm following fairly closely the suggestions posted to this > mailing list regarding the use of OO matplotlib with basemap: passing > the 'ax' to Basemap(). > > Yet, it seems that the call to drawmapboundary() resets the entire axis. > If it is commented out, then everything else works. With it, only the > boundary, parallels, and meridians are shown. > > I'm continuing to look into this ... Thanks for your reply. > > Glen > Glen: That works for me - a small window pops up and I see the continents and the topo field. I'm using the latest svn matplotlib and basemap. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |