caxis equivalent for slice plot
조회 수: 4 (최근 30일)
이전 댓글 표시
I have a plot that uses the slice command.
Is there a way to rescale the colormap of the resulting slice as would usully be done throiugh caxis([lower upper])?
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 12월 30일
편집: Ameer Hamza
2020년 12월 30일
caxis() also works for slice(). See the difference between two figures
[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);
xslice = [-1.2,0.8,2];
yslice = [];
zslice = 0;
figure()
slice(X,Y,Z,V,xslice,yslice,zslice)
figure()
slice(X,Y,Z,V,xslice,yslice,zslice)
caxis([-2 2])
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colormaps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!