How to revert graphs.
Afficher commentaires plus anciens
I am using a program in which an accelerometer records and plots data. From there you can save the plots and run the program again to collect more data and plot it. If I decide not to save the new data, the axes on my gui retain the unwanted data. I would like to see the plots of the data that I had originally saved, rather than the data I don't want. How can I revert the plots to their former data?
Réponses (1)
dpb
le 15 Juil 2019
1 vote
Basically, don't erase/delete anything until you're sure you're done with it. Save the line handle(s) to the lines when drawn; if you want to hide them temporarily, set hL(idx).Visible='off' for those when create the next set (with a new entry in the line handles array so you don't lose the previous, of course).
When you decide you are satisfied and don't want the earlier, then you can delete() those particular line handles and reuse that array element(s).
To go back, delete() the current array entry lines and return the .Visible property to 'on' again.
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!