How to increase number of lines in contour plots?
조회 수: 32 (최근 30일)
이전 댓글 표시
Hi. I am trying to use 'ezcontour'. I want to know how to increase number of lines that appear in these contour plots. Thanks.
댓글 수: 0
답변 (2개)
nanren888
2013년 3월 7일
help contour?
... contour(Z, N) and contour(X, Y, Z, N) draw N contour lines, ...
... contour(Z, V) and contour(X, Y, Z, V) draw LENGTH(V) contour lines at the values specified in vector V. ...
Did I miss your point?
댓글 수: 0
Tom McLeay
2015년 8월 6일
편집: Tom McLeay
2015년 8월 6일
THe 'N' parameter does not apply to ezcontour, only contour.
Use the Level Step parameter, e.g.:
>> h=ezcontour(@(x,y)pdf(obj,[x y]),[-3 5],[-4 5],100);
>> h.LevelStep=0.01;
It is also convenient to use a custom list, such as:
>> h.LevelList=[0.001 linspace(0,0.12,20)];
also refer to http://uk.mathworks.com/help/matlab/ref/contour-properties.html#zmw57dd0e125000 for more options
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!