SUPERIMPOSING and SCALE SHOWING problems Using m_map toolbox in MATLAB r2013b:
3 ビュー (過去 30 日間)
古いコメントを表示
1. I need to show the SCALE for wind speed as a legend, or on land.
2. I want to remove the quiver arrows from land, and show land by a colour other than that of quiver. I tried to superimpose image, but only the final image is being saved, looks like the “hold on” & “hold off” commands are not suitable.
The mat files are attached herewith, and codes are as follows:
I = 10; % Interval to plot quiver
%%%Loading mat files of Lon, Lat, mean_U, mean_V
s = what; %look in current directory
matfiles=s.mat;
for a=1:numel(matfiles)
load(char(matfiles(a)))
end
m_proj('miller cylindrical','lon',[119 127 ],'lat',[32.1 40])
figure;
h = m_quiver(Lon(1:I:end, 1:I:end), Lat(1:I:end, 1:I:end), mean_U(1:I:end,1:I:end), mean_V(1:I:end, 1:I:end), 1, 'FaceColor','r'); % red arrows
shading flat
m_gshhs_f('patch','b'); % LAND MASK in blue
m_gshhs_f('color','k'); % COASTLINE in black
m_grid('box','fancy', 'lines','--');
set(gcf,'PaperPositionMode','auto');
hold on
% same quiver field with visibility off
set(h, 'Visible', 'off')
hold off
print( '-dtiff','-r300', 'Mean sea surface wind.tiff');
I am requesting for your kind help.
Sincerely, Rashid
2 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!