caxis equivalent for slice plot
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nick K
am 30 Dez. 2020
Kommentiert: Ameer Hamza
am 31 Dez. 2020
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 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 30 Dez. 2020
Bearbeitet: Ameer Hamza
am 30 Dez. 2020
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])
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Colormaps 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!