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

12 次查看(过去 30 天)
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.

采纳的回答

Chad Greene
Chad Greene 2016-5-20
编辑:Chad Greene 2016-5-20
Set
caxis([-40 120])
after both plots.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by