How can I maintain zoom ratio in refreshing plot?
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visual Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!