Does Matlab execute a callback when a plot is zoomed/resized/redrawn? -


in matlab, update data plotted in set of axes when user zooms plot window. example, suppose want plot particular function defined analytically. update plot window additional data when user zooms traces, can examine function arbitrary resolution.

does matlab provide hooks update data when view changes? (or when redrawn?)

yes, does. zoom mode object has following callbacks:

buttondownfilter actionprecallback actionpostcallback 

the latter 2 executed either before or after zoom function. set update function in actionpostcallback, you'd update plot according new axes limits (the handle axes passed second input argument callback).


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -