Feature request: modify the code to work with any font color in the legend. When the legend font color is changed to a different color, for example blue ([0 0 1]), the function crashes when any legend entry is clicked. This is because the scaling of the font color results in a vector with values greater than 1.
This is a great tool. I did find one bug. When a user exports a region to a new figure it appears that the copied lines retain the 'selected' callback and the 'update' case fails due to no cursors on the new plot. I fixed this issue by modifing the first few lines of the 'update' case to be:
case 'update' %Update the cursor value
%Find the position of the existing cursors
cursors = findobj(axh,'Tag','Cursor');
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?