Borrar filtros
Borrar filtros

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

12 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Chad Greene
Chad Greene el 20 de Mayo de 2016
Editada: Chad Greene el 20 de Mayo de 2016
Set
caxis([-40 120])
after both plots.
  2 comentarios
Jasnoor Singh
Jasnoor Singh el 20 de Mayo de 2016
Genius man! Such a simple command and I've spent so much time searching for this. Thanks a lot!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by