フィルターのクリア

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

12 ビュー (過去 30 日間)
Jasnoor Singh
Jasnoor Singh 2016 年 5 月 20 日
コメント済み: Chad Greene 2016 年 5 月 20 日
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!!
Chad Greene
Chad Greene 2016 年 5 月 20 日
Glad you got it working!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by