How can I write titles on scatter plot?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello MATLAB Gurus! I have a Gui and axes1 to make scatter plot on it. Well I did it but I want to assign names to points on the graph. Any idea would be a great job for me. Thanks in advance.
a=[1,2,3,4];
b=[5,6,7,8];
names={'a','b','c', 'd'};
scatter(handles.axes2, a, b, 'filled')
댓글 수: 2
답변 (1개)
Walter Roberson
2015년 9월 17일
See text() or annotation()
If you were to plot only one point at a time, you could use legend()
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!