Surface plot contour values
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!