Getting a callback to execute DURING a panning operation

조회 수: 3 (최근 30일)
Luke Plausin
Luke Plausin 2015년 12월 9일
편집: Adam 2015년 12월 9일
Hi everyone,
I would like to get a callback function to execute while I am dragging a plot with the pan tool. Matlab provides documented callbacks using the pan(axis) handle. However these can only execute before and after the pan operation, and not during. This means that other objects which I've drawn over the canvas cannot scroll with the plot.
set(pan(hfig),'ActionPreCallback', @(h, ev) preZoomFcn(h, ev));
set(pan(hfig),'ActionPostCallback', @(h, ev) postZoomFcn(h, ev));
Are there any ways I can get my callback to execute as the plot is being dragged?
Thanks Luke

답변 (1개)

Adam
Adam 2015년 12월 9일
편집: Adam 2015년 12월 9일
This recent post on Yair Altman's blog may help you:
In general it seems callbacks are disabled during panning operations.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by