Display loaded figure in main window

hi How i can diplay a plot window using hgload('toto.fig') for example in main window or dock the opened figure in the parent window
i use a push button to call the hgload function, and i want display my FIG in same window, i dont want the new opened window

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Mzo. de 2013

0 votos

hgload() is going to create a new figure. You can copyobj() its contents into an existing figure.
You would probably want to locate the axes in the figure and copy the contents of the axes to an existing axes, but make sure you also set() all the writable axes properties to what they are in the loaded figure except the three position properties. Also, if you have legend() or annotations, you might have multiple axes objects to worry about.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Mzo. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by