How to delete or remove contours from surfc ?
이전 댓글 표시
Hello, I'm having difficulties removing the contours from surfc plot. The point is the plot was already created so i cannot change the plot type. I have 100 figures so i want to write a short code that deletes the contours. Thanks,
답변 (1개)
Walter Roberson
2013년 4월 23일
편집: Walter Roberson
2013년 4월 23일
delete() the objects of type 'patch'.
For example,
delete( findobj(gca, 'Type', 'patch') )
If you happen to have the output returned from the surfc() command, you do not need to do the findobj:
h = surfc( rand(20,20) );
then later if you have "h" still available,
delete(h(2:end))
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!