I wanted to add similar functionality as in the gnuplot interactive window, which is the possibility of toggling the visibility of single plots by just clicking on the legen