get rid of rugged edges plotted with trisurf
조회 수: 5 (최근 30일)
이전 댓글 표시
I am using trisurf to plot a set of scattered data (that happens to be cartesian coordinates of a spherical surface whose equation is unknown). Further, there is a parameter Pindex for every (x,y,z) according to which colormap is used. However, the region of one particular color is having severely rugged edges. The link shows a part of image:
I am using this code for plotting:
tri=delaunay(x,y); trisurf(tri,x,y,z,Pindex);
I tried using griddata and gridfit but they are not giving proper results. Does anyone know what modification I need to do in my code to get smooth edges of the regions?
답변 (3개)
Patrick Kalita
2012년 6월 1일
Try changing the figure's renderer to ZBuffer:
set(gcf, 'Renderer', 'zbuffer');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!