Great utility. I especially like how it is easy to right click and export the data.
Can this utility work with subplots and multiple lines within each subplot?
I run into this a lot when looking at test data obtained from DAQ hardware or even when looking at simulation results.
Have you considered incorporating this feature into a utility "ssc_explore" that Atul Suri from Mathworks created?
1. This is a very useful function when presenting a figure containing many data series to an audience.
2. Unfortunately there's an error in the 2nd example given in the preamble to the code. Instead of "'groups', [1 1 2 2 3 3 3 3 3]" in the clickableLegend call (which causes an error), I believe the intended usage was "'groups', [1 2 3 3 3 3 3]"
3. The behavior I wanted was to toggle data series visibility by clicking the associated legend text. The posted callback routine toggles the HitTest and HandleVisibility properties of the series, but to get the desired behavior, I replaced the two "set(obj, ...)" lines with