필터 지우기
필터 지우기

How can I maintain zoom ratio in refreshing plot?

조회 수: 6 (최근 30일)
DS, Park
DS, Park 2016년 9월 29일
답변: DS, Park 2016년 10월 19일
I have some problems with plot things.
There are so many properties in plot.
1) Input Image 2) Filtered Image
There are some controllable parameter for filter.
Plot is refreshed versus changing paremter.
For the detail check of image, I used Zoom Tools.
But everytime I refresh it, The image get role-back to initialized zoom factor.
Is there any easy way to get this problem??
Thank you.

채택된 답변

Jakub Rysanek
Jakub Rysanek 2016년 10월 4일
You can assign a user-defined callback function to the zooming tool:
figure;
plot(1:10);
zz = zoom();
set(zz,'Enable','off');% Zoom is by default NOT clicked...
set(zz,'ActionPostCallback',@zoom_behavior);
Implementation of zoom_behavior() may look like this:
function zoom_behavior(obj,evd)
% Current axes object
ax = evd.Axes;
% Apply yout zooming rule
set(ax,'Xlim',[0 1],'Ylim',[2 9]);
end

추가 답변 (1개)

DS, Park
DS, Park 2016년 10월 19일
You showed me kind a clue things. I got the way to solve the problem. Thank you for your help.

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by