Reduce edgewidth in trisurf plot

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!

 Respuesta aceptada

KSSV
KSSV el 23 de Jun. de 2022
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 comentarios

dj1du
dj1du el 23 de Jun. de 2022
I tried your solution, but the linewidth is not reduced in my plot!
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.EdgeAlpha = 0.5 ;
dj1du
dj1du el 23 de Jun. de 2022
Great, now it works fine, thank you!
KSSV
KSSV el 23 de Jun. de 2022
Thanks is accepting/ voting the answer. :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Jun. de 2022

Comentada:

el 23 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by