using magnify with image on uipanel

조회 수: 2 (최근 30일)
Nilimb
Nilimb 2011년 6월 19일
Hi, I am using this file for magnifying images on a figure. http://www.mathworks.com/matlabcentral/fileexchange/5961. It works fine if the image is parented to figure. As soon as i parent the image to uipanel it does not magnify the region properly. Anybody know a workaround to that.

답변 (1개)

Jan
Jan 2011년 6월 19일
Please explain "not properly" with some details. This works fine in Matlab 2009a:
panelH = uipanel('Position', [0.2, 0.2, 0.5, 0.5]);
axesH = axes('Parent', panelH);
plot(rand(1, 100));
magnify
The function MAGINIFY is fragil: It sets the figure coordinates to pixels, overwrites the UserData of the figure and the axes, uses the CurrentAxes and fails if it has a hidden handle. Perhaps this collides with your GUI design.
  댓글 수: 2
Nilimb
Nilimb 2011년 6월 20일
hi,
thanks for the reply.
i have an image(instead of plot) in axes in uipanel. The imscrollpanel parents uipanel with image handle. The magnify function does not display properly.
Jan
Jan 2011년 6월 20일
Let me repeat: Please explain "not properly" with any details.

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

카테고리

Help CenterFile Exchange에서 Build Interactive Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by