Effacer les filtres
Effacer les filtres

How to keep the numbers on the colorbar scale of a surface plot fixed?

12 vues (au cours des 30 derniers jours)
Jasnoor Singh
Jasnoor Singh le 20 Mai 2016
Commenté : Chad Greene le 20 Mai 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.

Réponse acceptée

Chad Greene
Chad Greene le 20 Mai 2016
Modifié(e) : Chad Greene le 20 Mai 2016
Set
caxis([-40 120])
after both plots.
  2 commentaires
Jasnoor Singh
Jasnoor Singh le 20 Mai 2016
Genius man! Such a simple command and I've spent so much time searching for this. Thanks a lot!!
Chad Greene
Chad Greene le 20 Mai 2016
Glad you got it working!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Colormaps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by