From: P. R.M. <rom...@ho...> - 2010-05-24 18:42:47
|
Jeff, would it be possible to achieve this type of layering using multiple overlaid (sub) plots? If so, how would I go about this? Send do you know of any way I might be able to create a custom 'hack' into the imshow code (within the matplotlib core) ??? thanks again, p.romero Date: Mon, 24 May 2010 11:43:04 -0600 From: js...@fa... Subject: Re: [Matplotlib-users] setting zorder for basemap.imshow(); overlay on continents To: rom...@ho...; mat...@li... On 5/24/10 10:09 AM, P. R.M. wrote: Hi, Im trying to create a precipitation contour plot using imshow() and basemap. Id like to draw the imshow() plot so that it overlays the filled continents, yet NOT the continental outlines. unfortunately, it appears that imshow()'s graphics are always drawn before everything else, so its 'zorder' argument is useless with basemap. the imshow() output is always at the bottom layer, with everthing else being overlaid on it & covering it up. is there a work-around for this, so that I can layer imshow()'s output between my calls to 'basemap.fillcontinents()' and 'basemap.drawcoastlines()'??? please help, thanks, p.romero I don't think this is possible - zorder doesn't work with images. You can use transparency though. -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-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg _________________________________________________________________ The New Busy is not the old busy. Search, chat and e-mail from your inbox. http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3 |