How to set same scale for contourf subplots?

26 ビュー (過去 30 日間)
Karthik Nagarajan
Karthik Nagarajan 2018 年 10 月 11 日
コメント済み: Karthik Nagarajan 2018 年 10 月 11 日
Dear all,
I have a subplot with 3 rows and 2 columns. Each panel is a 2D filled contour plot prepared using the contourf function. I would like to set the same colour scale for each subplot so that a single colorbar can be used for all of them. How can I ensure that the data is always plotted using the same scale even if the range of z is different for each subplot? I have tried specifying a vector argument using the 'LevelList' property but this doesn't seem to work.

採用された回答

jonas
jonas 2018 年 10 月 11 日
編集済み: jonas 2018 年 10 月 11 日
Use the same caxis
caxis([min max])
And yes, you may also want to use the same levellist.
  1 件のコメント
Karthik Nagarajan
Karthik Nagarajan 2018 年 10 月 11 日
Thanks, it worked!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by