contourf plot different display problem

조회 수: 1 (최근 30일)
Yu Li
Yu Li 2018년 10월 5일
댓글: Yu Li 2018년 10월 5일
I want to draw a contour plot, the data is similar, the colormap is the same (created by jet(17)), and the data range is the same (caxis([1 17])), the difference is that:
in plot1, the data range is 1-12,
in plot2, the data range is 1-15.
below is the result:
the value in the red circle is in the same color but the display is not.
I also attached the test file and test code.
is there anyway to solve this problem?
Thanks!
Yu
  댓글 수: 6
jonas
jonas 2018년 10월 5일
편집: jonas 2018년 10월 5일
It's not the same. The caxis sets the max and min for the colorbar and levellist specifies the contour levels to be drawn. Try setting
caxis([0 100])
and you will see what happens.
Yu Li
Yu Li 2018년 10월 5일
Ok I got it.
Thank you very much!
Bests!
Yu

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by