필터 지우기
필터 지우기

How to export a figure with its UI elements in Windows 7?

조회 수: 1 (최근 30일)
Razvan
Razvan 2013년 8월 11일
Hi all,
I'm trying to export a Matlab figure together with its UI elements (the whole figure window). The usual way I export a figure as an eps vector image is something like this:
FigHandle = figure;
plot(rand(1,10));
set(FigHandle, 'PaperPositionMode', 'auto')
print(FigHandle, '-depsc2', '-painters', 'temp_fig.eps');
Is there a quick way of exporting the entire figure window?
Thanks!

채택된 답변

Jan
Jan 2013년 8월 12일
편집: Jan 2013년 8월 12일
But there are no uicontrol's in your example. Perhaps you mean the window border, the menubar and toolbar also? But then a direct export to an EPS file is not possible.
When I add uicontrol('String', 'hello'), it appears immediately in the exported EPS on my Matlab R2009a/64/Win7.
[EDITED] You can use FEX: ScreenCapture for the get(FigHandle, 'OuterPosition') to capture the window border also.
  댓글 수: 1
Razvan
Razvan 2013년 8월 12일
Yes, I want the full window with menubar and toolbar. TIF, JPG or anything else is fine too.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

per isakson
per isakson 2013년 8월 11일
편집: per isakson 2013년 8월 11일
-noui, Suppress printing of user interface controls. See "Excluding User
Interface Controls".
But you want them included;-(
In the Preferences | Figure Copy Template there is a Show uicontrols check-box.

카테고리

Help CenterFile Exchange에서 Graphics Objects에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by