rqt_plot) Add feature to show/hide legend on plot field and its restoration (for MatDataPlot only for now).

Continued from [this PR](https://github.com/ros-visualization/rqt_common_plugins/pull/181) that was automatically closed.