How to set same scale for contourf subplots?

조회 수: 23 (최근 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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by