SUPERIMPOSING and SCALE SHOWING problems Using m_map toolbox in MATLAB r2013b:
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!