Globe position and Resize Problem Stem3m
Ältere Kommentare anzeigen
Hi, I am trying to plot a few different maps of the globe with data using the stem3m function. My problem lies in the re-sizing of the figures/axes between images.
When I make a movie out of the generated figures, the globe seems to be 'moving' around. It does not stay at the center of the movie due to the re-sizing of the image as the stem3m data changes.
How can I 'lock' the globe's center as the center of the figure, regardless of what the stem3m's data is, and keep the zoom constant?
Thank you so much for your help! and if anyone needs clarification please let me know!
Here is my code for generating the image hFig = figure;%('Resize', 'off');
set(gca,'units','pix')
%figure;%('visible','off');
axesm('globe');
gridm('GLineStyle','-','Gcolor',[.8 .7 .6],'Galtitude', .02)
plotm(lat,long,'w');
stem3m(latm,longm,data(:,i), 'go-', 'LineWidth', 3)%,'k');
view(-14,8)
base = zeros(180,360);
baseR = makerefmat('RasterSize', size(base), ...
'Latlim',[-90 90],'Lonlim',[0 360]);
hs = meshm(base,baseR,size(base));
colormap cool
set(gcf,'color','black');
axis off;
Antworten (0)
Kategorien
Mehr zu Blocked Images finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!