필터 지우기
필터 지우기

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
Ahmed Harun-Al-Rashid
Ahmed Harun-Al-Rashid 2016년 10월 13일
편집: Ahmed Harun-Al-Rashid 2016년 10월 13일
Dear Dr. Siva Srinivas Kolukula,
The 4 mat files (Lat.mat, Lon.mat, mean_U.mat, mean_V.mat) are attached at the end of my query for downloading.
Thanks a lot. Could you help me please solving the problems.
Sincerely yours,
Rashid

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by