필터 지우기
필터 지우기

Reduce edgewidth in trisurf plot

조회 수: 4 (최근 30일)
dj1du
dj1du 2022년 6월 23일
댓글: KSSV 2022년 6월 23일
Good morning,
for a publication I produced the attached plot using the trisurf command. I'd like the two current distributions with its colours to look more exposed, but the edges of the triangular mesh prevent the colours to be visible more clearly (unfortunately, the mesh must be included in the plot and can't be made coarser). Is it possible to reduce the edgewidth of the triangles or apply some other method to create a better plot?
Thank you very much for your help!

채택된 답변

KSSV
KSSV 2022년 6월 23일
x = rand(100,1) ;
y = rand(100,1) ;
dt = delaunayTriangulation(x,y) ;
t = dt.ConnectivityList ;
p = dt.Points ;
d = sqrt(p(:,1).^2+p(:,2).^2) ;
h = trisurf(t,p(:,1),p(:,2),d) ;
h.LineWidth = 0.1 ;
  댓글 수: 4
dj1du
dj1du 2022년 6월 23일
Great, now it works fine, thank you!
KSSV
KSSV 2022년 6월 23일
Thanks is accepting/ voting the answer. :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by