Copying selected lines to new figure?
35 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
0 Commenti
Risposta accettata
Walter Roberson
il 13 Ago 2013
I am not sure how you are controlling which plots are visible or not ?
Generally speaking, if an object's Visible property is 'on', and the same is true for all of its parents, then the object will be part of a figure (unless the object is currently hidden behind something else.)
If you are intending to refer to the objects that are visible by virtue of not being visibly covered up by something else, then the determination can be rather complex... especially if you are dealing with transparency.
4 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!