Draw or add axes to figure

Super helpful way to visualize axes in a 2D figure.
Updated 1 Sep 2016

View License

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 (2024). Draw or add axes to figure (https://www.mathworks.com/matlabcentral/fileexchange/42135-draw-or-add-axes-to-figure), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated license

Increasing freshness