Custom and centered axes for 2D plot

It is way to place axes in eny point you want. Makes plot more readable and presented.

You are now following this Submission

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://in.mathworks.com/matlabcentral/fileexchange/22715-custom-and-centered-axes-for-2d-plot), MATLAB Central File Exchange. Retrieved .

Categories

Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

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

1.0.0.0