Custom and centered axes for 2D plot

It is way to place axes in eny point you want. Makes plot more readable and presented.
1.1K Downloads
Updated 10 Mar 2009

View License

In the internet I found this files for this purpose :
centaxes.m , centeraxes.m
I read their code and made my version.

example of using my function:
x=[-2*pi:0.1:2*pi];
plot(x,cos(x));
newaxes

OR
x=[-2*pi:0.1:2*pi];
plot(x,cos(x));
newaxes(1,-0.5)

Cite As

Alexander Brodsky (2026). Custom and centered axes for 2D plot (https://uk.mathworks.com/matlabcentral/fileexchange/22715-custom-and-centered-axes-for-2d-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers
Tags Add Tags
Version Published Release Notes
1.1.0.0

I changed name from "manual" to "custom" (my poor english)

1.0.0.0