Oaxes creates a set of axis lines through a specified origin point. Oaxes supports both 2D and 3D views, ticks and tick labels, axis labels, log-scaled axes, and has a plethora of properties, analogous to normal axes properties, that give control over the oaxes object's appearance. In addition, various oaxes-specific properties give the user control over features such as arrows at the axis ends and the extent of the axis lines.
By default, the origin is set at the center of the axes limits, and will remain centered if the parent axes limits change. If a fixed origin point is specified, the axis lines will be drawn using that point as the origin. Additionally, the oaxes object will automatically update in response to changes to many of the parent axes' properties.
See the help text in oaxes.m for more information, including examples.
Oaxes uses a number of undocumented MATLAB features which may cause problems in older versions of MATLAB. If there are workarounds that do not require significant changes, I will add them to the code. MATLAB version 7.10.0 (R2010a) was used to develop and test Oaxes.
Installation: Unpack the contents of the .zip file, then add the top-level folder ("customplots") to the MATLAB path.
John Barber (2022). oaxes - central axis lines through an origin (https://www.mathworks.com/matlabcentral/fileexchange/30018-oaxes-central-axis-lines-through-an-origin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: axescenter
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!