Scatter plot: dots in two different colors
1 次查看(过去 30 天)
显示 更早的评论
Hi,
Very simple issue but I still don't know how to solve it..
I am trying to produce a scatter plot of two arrays x, y using
scatter(pts1, ptcmems700)
xlabel('S1 θ (°C)');
ylabel('cmems θ (°C)');
How can I have dots belonging to pts1 being all red and dots beloging to ptcmems700 beign all black?
Thank you very much!
1 个评论
Smitesh Patil
2021-7-19
pts1 and ptcmems700 together define all the points, x and y coordinates repectively. What do you mean by dots belonging to pts1 and ptcmems700?
回答(1 个)
KSSV
2021-7-19
scatter(pts1, ptcmems700,[],ptcmems700)
xlabel('S1 θ (°C)');
ylabel('cmems θ (°C)');
0 个评论
另请参阅
类别
在 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!