glinkaxes: interactive linkaxes

GLINKAXES lets user, via mouse clicks, to choose the axes to synchronize their axis limits.

You are now following this Submission

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.)

Revision:
Rev.1 (4/14/11) - GLINKAXES(OPTION) calling option parsing bug fix

Cite As

Kesh Ikuma (2026). glinkaxes: interactive linkaxes (https://uk.mathworks.com/matlabcentral/fileexchange/30850-glinkaxes-interactive-linkaxes), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

GLINKAXES(OPTION) parsing bug fix

1.0.0.0