Borrar filtros
Borrar filtros

SUPERIMPOSING and SCALE SHOWING problems Using m_map toolbox in MATLAB r2013b:

3 visualizaciones (últimos 30 días)
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 comentarios
Ahmed Harun-Al-Rashid
Ahmed Harun-Al-Rashid el 13 de Oct. de 2016
Editada: Ahmed Harun-Al-Rashid el 13 de Oct. de 2016
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

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by