Put each marker on a curve at a different color

2 ビュー (過去 30 日間)
Mary
Mary 2020 年 6 月 29 日
コメント済み: Mary 2020 年 6 月 30 日
Hi Matlab users,
I have a set of data. I want to have only one legend for this set of data and put each individual point at a different color. Is that possible ? because each color would represent something special.
small example of that would be:
co=jet(10);
plot(x,y,'color',co) such that for each pair x-y, there is a specific color. But this code won't work as Matlab expects only one color after 'color'.
Do you have any idea how my idea can be done ?
Regards,
Mary

採用された回答

Adam Danz
Adam Danz 2020 年 6 月 29 日
  1 件のコメント
Mary
Mary 2020 年 6 月 30 日
Thank you

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by