Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a figure and everything on it

Status
Not open for further replies.

hoopz

Electrical
Sep 22, 2006
7
US
I am creating a GUI that processes some data and plots the data on a figure. The little plot window in my GUI is nice, but I'd like to be able to give the user the option to copy the figure to an external figure window, so that they can then do things like saving the figure as a JPG or something like that. That way I don't have to incorporate all these things into my GUI.

I know that I can create a new figure by using the command:

figure;

but how do I get everything off my old figure onto the new one?
 
Replies continue below

Recommended for you

copyobj does not copy figures, or axes, as far as I can tell. It copies things like plots I think.

I want to be able to copy EVERYTHING on a figure into another figure.

thanks
 
It does copy EVERYTHING. You just need to make sure you have a handle to the things you want to copy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top