Finding and Saving GUI axes' xdata ydata as Userdata
Show older comments
I have a GUI (using guide) which processes some data files and generates a plot in one axes in the GUI. The plot is made by the spectopo function, which is a part of EEGlab toolbox and displays power spectral density from EEG data. Once the plot is made, I set some of the properties of the plot, like xlim, ylim, font sizes etc. I want to store the current plot's Xdata and Ydata (preferably after axis limits have been set), in the Userdata for this axes. So that I can use this data and read out the y-value of this data for a particular x-value - when another button in GUI is pressed.
any suggestions to do that ? Once the plot is made, there is no Xdata or Ydata property for this axis. where is this data stored ? or should i store that data from the main function spectopo which is actually generating the plot ? Thanks
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!