MATLAB Answers

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

조회 수: 1(최근 30일)
Lak Yen Nee
Lak Yen Nee 2021년 6월 20일
답변: Vimal Rathod 2021년 6월 23일
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

Community Treasure Hunt

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

Start Hunting!

Translated by