Mapping toolbox geoshow; superimposing US state boundaries but transparent state regions
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jorge Ramirez
am 29 Okt. 2014
Beantwortet: Chad Greene
am 29 Okt. 2014
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 Kommentare
Akzeptierte Antwort
Chad Greene
am 29 Okt. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!