Colouring of my Graph
조회 수: 3 (최근 30일)
이전 댓글 표시
So I have a graph of my imported messurements, and i would like to colour different parts of it with different colours. Any ideas??
댓글 수: 2
답변 (1개)
Walter Roberson
2021년 10월 3일
If you just have a collection of points in terms of coordinates, and there is no ordering or connections, then use scatter() . The 4th parameter can have one color for every point.
If you have a collection of vertices and edges, then use a graph() object and specify NodeColor when you plot() https://www.mathworks.com/matlabcentral/answers/477504-how-to-choose-different-colors-for-nodes#answer_388996
참고 항목
카테고리
Help Center 및 File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!