Mapping toolbox geoshow; superimposing US state boundaries but transparent state regions
16 views (last 30 days)
Show older comments
I am running R2014b on an iMac running OS X Yosemite.
I need to be able to overlay state boundaries on maps of precipitation over the CONUS. I used to be able to do this using R2013a. However, now the overlay is not transparent. Therefore, the precipitation map is completely covered. I am using the following script lines:
states = shaperead('usastatelo', 'UseGeoCoords', true); figure('Name','HUC-4s',... 'Position',[scrsz(1) 0 scrsz(3) scrsz(4)]); axesm ('eqaconic','MapLatLimit',[15 55],'MapLonLimit',[-130 -60]); worldmap([24 51],[-126 -66]); framem off gridm on surfacem(lat,lon,map); geoshow('worldrivers.shp', 'Color', 'blue'); geoshow(states,'FaceColor',[1,1,1]);
Would you let me know how to overlay just the state boundaries? Thank you very much for your help with this.
Jorge
0 Comments
Accepted Answer
Chad Greene
on 29 Oct 2014
Have you set any facealpha values?
geoshow(states,'FaceColor',[1,1,1],'facealpha',.3);
Also, with any transparency issues, this is a good trick to keep up your sleeve. It's always worth trying:
set(gcf,'renderer','opengl')
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!