How to define different colors for different edges?
조회 수: 15 (최근 30일)
이전 댓글 표시
Hello evrybody,
I have an electrostatis pde model with the geometry ilustrated below (pdegplot, "EdgeLebals"=="off", 16 edges). I am wandering if there is any way to define line colors for the edges? I have checked in the Property Inspector, that the plot consists only one line object for the model geometry.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1347439/image.jpeg)
Thanks for any help,
Beata
댓글 수: 0
채택된 답변
Image Analyst
2023년 4월 6일
If you can get the coordinates of the line endpoints, you can use the line function to overwrite that shape with colors of your choice.
help line
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!