How to identify traces in a plot

11 次查看(过去 30 天)
David Fox
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?

回答(1 个)

dpb
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

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by