Draw or add axes to figure

Super helpful way to visualize axes in a 2D figure.

You are now following this Submission

This file will draw lines representing the horizontal and vertical axes in a two-dimensional plot on the axis identified by the input handle. If no input is provided, it uses the current figure's current axes.

Cite As

Kye Taylor (2026). Draw or add axes to figure (https://www.mathworks.com/matlabcentral/fileexchange/42135-draw-or-add-axes-to-figure), 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.2.0.1

Updated license

1.2.0.0

Increasing freshness

1.0.0.0