MATLAB Answers

David Fox

How to identify traces in a plot

David Fox
さんによって質問されました 2019 年 10 月 29 日
最新アクティビティ dpb
さんによって 回答されました 2019 年 10 月 29 日
I have a plot with many traces that look similar (so many that the colors don't really help), so it is hard to tell which one is which. Is there any way to select a trace on a plot and somehow display which legend entry is it associated with?

  0 件のコメント

サインイン to comment.




1 件の回答

回答者: dpb
2019 年 10 月 29 日

You could use the 'Tag' line property to add an identifier to each when created or use the legend 'DisplayName' which is also settable as the a line property.
Or, just save and use the line handle created when plot

  0 件のコメント

サインイン to comment.

Translated by