Change the color of a line in a multilines plot when mouse over the particular line

6 次查看(过去 30 天)
Hi guys, does anyone know how to highlight a single line in a multilines plot when mouse over the particular line. My code showing in the picture only makes the whole plot(all the lines) change to black color instead of just one single line. Thank you.

回答(1 个)

Vimal Rathod
Vimal Rathod 2021-6-23
Hi,
Below is a link to a similar question, once you identify the line on the plot you could highlight it by increasing the 'LineWidth' property

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by