Problem with bathymetry map and contoured data
3 views (last 30 days)
Show older comments
I am trying to map ocean data over the Pacific Basin with an ETOPO2 file for the coastlines (which is grey land with a black outline). The coastlines and land load fine and then I add the data I want to map.... Where the data field is nan, the black outline of the coast remains, but the fill in grey color goes away. How do I fix this?
Here is my piece of code that graphs the land and data...
[cc,hh] = contourf(flipud(rot90(LON)),flipud(rot90(LAT)),flipud(rot90(Zf)),[1 1], 'k');
set(hh, 'fill', 'on', 'LineWidth',2);
set(get(hh, 'children'), 'facecolor', [128 128 128]/255);
contourf(lon2_2d,lat_2d,sst_2d,40,'linestyle','none');
0 Comments
Answers (0)
See Also
Categories
Find more on Map Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!