You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
MATLAB does not have any built-in functionality for centering the coordinate axes around the origin. This tool is a first fix for solving this. An example script is included showing how to use the function.
Tested on MATLAB 2007b. Works fine, as long as the figure is not resized after the function is called.
Cite As
Johan Carlson (2026). Centered coordinate axes in 2D plots (https://www.mathworks.com/matlabcentral/fileexchange/22333-centered-coordinate-axes-in-2d-plots), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0.0 (1.91 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.2.0.0 | Fixed bug related to axes in 'Normalized' 'Units'. |
||
| 1.1.0.0 | Changed the x axis and y axis tick labeling so that it now includes also the end points. As a consequence, the axes are now 10% longer in order to make room for the arrowheads. |
||
| 1.0.0.0 |
