Plotting latitude, longitude and array with a shapefile outline
조회 수: 4 (최근 30일)
이전 댓글 표시
I have three 120 by 150 arrays, one for latitude, one for longitude and one for solar radiation. I also have a shapefile showing the Ethiopian border..
I can use pcolor to plot this data but I would really like to use a shapefile to show the Ethiopian country outline on top of this data.
I would really appreciate any help. Thank you!
채택된 답변
Raghav Singhal
2019년 2월 20일
Hi,
You can plot the map outline over your data by using ‘geoshow’ function and setting the 'FaceColor' field to 'none'. If the line isn’t clearly visible, you could alter the ‘linewidth’ field as required. Hope this helps
eg: geoshow('landareas.shp', 'FaceColor', 'none','LineWidth',2);
For more information on the “geoshow function”, you can refer to this link: https://www.mathworks.com/help/map/ref/geoshow.html
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!