Axes widget of a gui ....

2 views (last 30 days)
karan
karan on 24 Nov 2011
Hi i have a gui which has an axes widget..
I was wondering how can i save my plot to a jpeg format file..
Thanks for your assistance.
  1 Comment
karan
karan on 24 Nov 2011
although i have an axes widget in my gui can i open this same plot in a figure window for editing purposes.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 24 Nov 2011
Possibly my response from http://www.mathworks.com/matlabcentral/answers/21991-save-image is appropriate about saving the axes content ?
If you have a plot in an axes and you want to copy it to a different figure, then you can create the second figure and copyobj() the axes to it.
If you do not want all the graphics items in the axes, you could either remove the extra ones after the copyobj(), or you could create a new axes in the new figure and copyobj() only the things you want to keep over to the new axes.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!