Patrick Marsh wrote: > Greetings, > > I have global data that I would like to plot using > mpl_toolkits.basemap. The catch is that I want to mask out all data > over the ocean. I know there is a function to fill > continents,map.fillcontinents(), but I can't seem to find one for > filling oceans. Ideally, I want the oceans to show up with a white > background and no data contoured. > > Am I completely missing something or is this functionality missing? > > > Thanks, > > -- > Patrick Marsh > Graduate Research Assistant > School of Meteorology > University of Oklahoma
Patrick: There is a drawlsmask method that can fill ocean and land pixels different colors. See http://matplotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html for details. You can make the land transparent, and the ocean white for example. It's based on a 5 minute land/sea mask dataset, although you can use your own (as long as it's global and defined on a regular lat/lon grid). -Jeff > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users