Fix scaling of mesh plot during movie
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am creating a movie from a sequence of mesh plot images. I am trying to fix the scale in z direction, but for some reason the image scaling seems to change with every image. Any ideas. Here is what I have so far:
SWT = size(WT); zmin = min(min(min(WT)))*30; zmax = max(max(max(WT)))*30;
for m = 1:SWT(3) mesh(WT(:,:,m)) view (0.001,90) axis([1 88 1 122 zmin zmax]) caxis manual M(m) = getframe; pause(0.1) end
0 commentaires
Réponses (1)
Image Analyst
le 26 Nov 2013
Use xlim() and ylim() to set the axes to predetermined sizes. Use set(gca, 'Position', [left, top, width, height]) to set the overall graph to a predetermined size.
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!