Different colors for scatter plot points based on the difference of x-y values
18 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a scatter plot of two arrays, x and y. I need to distinguish the points in the plot with different colours based on the difference between x and y values. Hope someone can help me!
Thanks very much
0 件のコメント
採用された回答
Cris LaPierre
2021 年 1 月 19 日
You will need to come up with a vector that contains the values you want to use to set the color of the points. Once you have that, pass it in as the 4th input using the following syntax:
その他の回答 (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!