Michael Hearne wrote: > I have two questions: > > 1) The fillcontinents() method has a zorder keyword parameter. Is > this supposed to work with imshow()? I have the latest tarball from > the website, and I can't get my image to paint on top of the continents. > > 2) Has anyone figured out a way to make an _ocean_ mask? I need my > map to look like this > > ( > http://earthquake.usgs.gov/eqcenter/pager/us/2007itah/us/5/shakemap.600.jpg) > > > , where the image data (the yellow and orange bits) that extends out > beyond the land boundary is masked by a blue ocean. > > Thanks, > > Mike Mike: You can set the background color for the axes instance to blue, and then draw the filled continents over it.
You'll also have to make your image a masked array, and set the missing values to be transparent. The basemap examples plotmap_masked.py shows how to do both of these things. -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: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users