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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164706/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164708/image.png)
0 件のコメント
採用された回答
Chad Greene
2016 年 5 月 20 日
編集済み: Chad Greene
2016 年 5 月 20 日
Set
caxis([-40 120])
after both plots.
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Colormaps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!