contourf with no isoline

조회 수: 176 (최근 30일)
Shani Gal
Shani Gal 2012년 2월 13일
댓글: Utility 2022년 6월 20일
Hi
How do I plot a contourf plot only with colors and no isolines?
"filled contour plot displays isolines calculated from matrix Z and fills the areas between the isolines using constant colors corresponding to the current figure's colormap"
I wish to have only the color between the isolines but no isolines..
Thanks
Shani

채택된 답변

Andrew Newell
Andrew Newell 2012년 2월 13일
Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')
  댓글 수: 4
Shani Gal
Shani Gal 2012년 2월 19일
Thanks, how do I change the label on the axis? a 20x400 matrix will display 0 to 20 and 0 to 400. How do I assign real values to this numbers?
Oanh Bui
Oanh Bui 2015년 8월 2일
Thanks so much. it worked.

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

추가 답변 (1개)

Todd
Todd 2012년 3월 7일
You can also put 'LineColor', 'none' in the argument list to contourf.
  댓글 수: 1
Utility
Utility 2022년 6월 20일
super! Thanks a lot!

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

카테고리

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