How to keep the numbers on the colorbar scale of a surface plot fixed?
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jasnoor Singh
il 20 Mag 2016
Commentato: Chad Greene
il 20 Mag 2016
Following are my two surface plots (top view). Right now the first graph has colorbar scale from -40 to 40 while the second from -40 to 120. I want the colorbar axes to show the same scale in both, i.e., -40 to 120. Can someone please help? Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164706/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164708/image.png)
0 Commenti
Risposta accettata
Chad Greene
il 20 Mag 2016
Modificato: Chad Greene
il 20 Mag 2016
Set
caxis([-40 120])
after both plots.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Colormaps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!