Copying selected lines to new figure?
Show older comments
I have a rather large number of data plots in several figures, collected together for ease of visual comparison, but I'd like to be able to pull one or several out at a time and copy them to a separate figure. For example the currently displayed ones only! (I can access the figure data to extract all lines, but I don't know how to point only at those that are currently displayed on the plot, and with several thousand, though usually only 10 or 20 displayed at a time, it gets time consuming).
In the past I've copied the whole figure and manually deleted all other lines, but this is extremely inefficient.
I had a hunt around but didn't see any tools for extracting plotted lines from figures to new figures and/or cell arrays directly though I'm guessing there is one out there? While I imagine its not that difficult, I've had problems in the past getting the data from figure, usually because I run into handle issues that I'm not quite capable of dealing with.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!