I use the arcticseaice function created by Chad Greene to plot a map, how can I plot a scatter on it ?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,the data for scatter plot is [lat,lon,concentrations]. I use Andrew Bliss' polarstereo_fwd to convert lat,lon to x,y. However, when I plot this scatter on sea ice map, it looks wrong (see below picture). I want to have 2 colorbar with a plot, one is for sea ice map, another is for scatter concentrations.
Below is my code, can someone help me?
Thanks very much!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/667450/image.png)
% plot a seaice map
arcticseaice('aug. 8, 2016','label','none')
cb = colorbar;
ylabel(cb,'sea ice concentration (%)')
cmocean ice
% concentrations data
data=xlsread('F:\arctic_MSAdata_cruise.xlsx');
lat0=data(:,1);
lon0=data(:,2);
msa=data(:,3);
% Conversion lat and lon
[x,y]=polarstereo_fwd(lat0,lon0);
%plot a scatter on seaice map
hold on
h_2=scatter(x,y,10,msa);
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!