How can I write titles on scatter plot?
3 ビュー (過去 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 件のコメント
@Johannes
2015 年 9 月 17 日
Hi, you can use the Text function to add names to the data points.
Bye, john
回答 (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 で Scatter Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!