copy uipanel content to clipboard
이전 댓글 표시
Hi,
l have a uipanel containing multiples Axes ...how to copy the content of the uipanel to clipboard ? for now l'm using a snipping tool, not convenient.
tried and searched for Print option, couldn't find anything.
rgds,
Michael
답변 (2개)
Richard Quist
2012년 12월 3일
Have you tried, from the MATLAB command line or within a function or script:
print(fig, '-dmeta')
where fig is the figure that contains your content?
댓글 수: 5
Walter Roberson
2012년 12월 3일
The poster wants only the uipanel not the entire figure.
I would say it is worth trying to pass in the uipanel handle instead of a figure handle.
Richard Quist
2012년 12월 3일
Passing in the uipanel handle directly won't work. The command expects a figure. Your copyobj suggestion below is probably the way to go if only the uipanel is wanted
Walter Roberson
2012년 12월 3일
I seem to remember from the source that the FEX contribution export_fig can do this kind of copying automatically.
michael
2012년 12월 8일
Walter Roberson
2012년 12월 9일
get() the Position of the uipanel and set() it as the Position of the new figure before doing the copyobj(). You might have to temporarily set() the Units of the uipanel to pixels before get()'ing the Position.
Walter Roberson
2012년 12월 3일
0 개 추천
Sometimes what has to be done is to create a second figure, copyobj() the graphics into the new figure, and print() or saveas() or export_fig the new figure.
카테고리
도움말 센터 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!