GLINKAXES is a wrapper function for the built-in LINKAXES function. Prior to calling LINKAXES function, GLINKAXES accepts user mouse clicks to select axes to synchronize.
There are 4 possible ways to call this function:
GLINKAXES or GLINKAXES(OPTION) to choose as many axes as desired (terminate selection by pressing ENTER key with the focus on a figure window).
GLINKAXES(N) or GLINKAXES(N,OPTION) to choose (up to) N axes. Press ENTER key for less than N.
OPTION argument is directly passed to LINKAXES and must be one of 'x','y','xy',or 'none'.
This function works on Matlab R2008a or later. (It uses a OnCleanup function which is introduced in R2008a.)
Rev.1 (4/14/11) - GLINKAXES(OPTION) calling option parsing bug fix
Kesh Ikuma (2022). glinkaxes: interactive linkaxes (https://www.mathworks.com/matlabcentral/fileexchange/30850-glinkaxes-interactive-linkaxes), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!