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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 3월 26일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

질문:

2013년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by