- Don't plot so many points.
- Turn off the edge color.
Surf with wrong colors
조회 수: 7 (최근 30일)
이전 댓글 표시
I'm using surf to make 3d plots, but one of them comes out weird and I cannot understand why..thus is the figure that comes out:

even if the colormap on the right looks fine, the surface is completely black, even if I change 'FaceAlpha' and no matter how I rotate it...how can I fix this?
댓글 수: 1
Stephen23
2018년 9월 17일
"how can I fix this?"
Two options:
채택된 답변
jonas
2018년 9월 17일
편집: jonas
2018년 9월 17일
Grid is too fine, set 'edgecolor' off.
surf(X,Y,Z,'edgecolor','none')
댓글 수: 5
Steven Lord
2018년 9월 17일
The set function has been around for quite a while (I believe it was introduced as a part of the original Handle Graphics system, but that's before my time at MathWorks.) It was and is permissive with respect to the case of graphics object property names.
The [object].[property name] syntax for Handle Graphics objects was introduced in release R2014b. Object property name indexing in general is case sensitive, and property name indexing for Handle Graphics objects is no exception.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!