I use the arcticseaice function created by Chad Greene to plot a map, how can I plot a scatter on it ?
1 回表示 (過去 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!
% 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!