Surface plot contour values
이전 댓글 표시
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개)
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!