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일

8 개 추천

Here is an example of how to do it:
[C,h] = contourf(peaks(20),10);
set(h,'LineColor','none')

댓글 수: 4

Walter Roberson
Walter Roberson 2012년 2월 13일
Should it be EdgeColor since it is patches that are constructed?
Andrew Newell
Andrew Newell 2012년 2월 13일
I tested it and it works - so maybe the lines are plotted separately.
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일

12 개 추천

You can also put 'LineColor', 'none' in the argument list to contourf.

카테고리

도움말 센터File Exchange에서 Contour Plots에 대해 자세히 알아보기

태그

질문:

2012년 2월 13일

댓글:

2022년 6월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by