Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Sep 22, 2006
Messages
7
Location
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?
 
The copyobj function will do the trick.
 
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