Mapping toolbox geoshow; superimposing US state boundaries but transparent state regions

조회 수: 3 (최근 30일)
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

채택된 답변

Chad Greene
Chad Greene 2014년 10월 29일
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개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by