allowaxestogrow

With one click, zoom axes for better visibility.

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Matt Caywood (2026). allowaxestogrow (https://www.mathworks.com/matlabcentral/fileexchange/7867-allowaxestogrow), 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.7.0

Increased compatibility with others' graphics scripts by using appdata, single button-down function.

Download
1.6.0

Work around Matlab bug in which figure plots are created in.

Download
1.5.0

Try to preserve plot order better; Preserve plot aspect ratio. (Version 0.31)

Download
1.4.0

Allows user to set predefined size for zoomed plot; colorbars finally work well.
Much simplified by using invisible patches to trap clicks. Now requires Matlab's OpenGL renderer which may cause side effects on some older systems.

Download
1.0.0

Work around reported bug when axis type is a cell array.

T W, I can't figure out how to reproduce this bug. Please contact me by email if you have a test case I can use.

Also, add click support to patches.

Download