
Color area outside of polygon/shapefile?
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Hi,
I have a shapefile of the U.S.. I am simply looking to fill the outside of this shapefile with a particular color. I'm sure there is a simple solution but cannot find..
Thank you!
0 Kommentare
Antworten (2)
  Chad Greene
      
      
 am 9 Mär. 2016
        Hi Ryan,
Perhaps you're looking for setm with the 'ffacecolor' option.
worldmap('world')
geoshow('landareas.shp')
setm(gca,'ffacecolor',rgb('ocean blue'))

8 Kommentare
  Chad Greene
      
      
 am 11 Apr. 2016
				If you have a shapefile, you can simply determine which pixels in your lat/lon grid fall within the bounds of the shapefile's polygon using inpolygon. If your shapefile contains multiple polygons, use Kelly Kearney's inpolygons.
  Erin Browne
 am 19 Mär. 2019
        Hi I am wondering instead of setting the ocean color how would you do that for the land masses?
0 Kommentare
Siehe auch
Kategorien
				Mehr zu Map Display finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


