필터 지우기
필터 지우기

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

조회 수: 14 (최근 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.
  댓글 수: 2
Jasnoor Singh
Jasnoor Singh 2016년 5월 20일
Genius man! Such a simple command and I've spent so much time searching for this. Thanks a lot!!

댓글을 달려면 로그인하십시오.

추가 답변 (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