Surface plot contour values
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to set the backgound vorticity levels of my contour plot to be the same color so that only values above this are shown. I would like the values between -10 and 10 to be the same color so that no contours are shown between these values. This is the loop I have so far. I would like this change to be reflected to each frame as well. I have attached an image of one of the frames to show what I am generating currently.
for z=1:1:25
f=figure('visible','off');
Vorticity(:,:,z)=dvdx(:,:,z)-dudy(:,:,z);
contourf(X,Y,Vorticity(:,:,z));
caxis([-25 25]);
ivcb2=colorbar;
ivcb2.Label.String = '1/s';
w32 = ivcb2.FontSize;
ivcb2.FontSize = 12;
xlabel('X (m)');
ylabel('Y (m)');
title('StaticMakoVorticity2');
Mvort2(z)=getframe(gcf);
end
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!