Centered coordinate axes in 2D plots
by Johan Carlson
05 Dec 2008
(Updated 21 Nov 2009)
Takes the current coordinate axes (with ticks and labels) and draws new ones centered at the origin.
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 21 Nov 2009 |
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. |
|
Contact us at files@mathworks.com