Custom and centered axes for 2D plot
Version 1.1.0.0 (1.58 KB) by
Alexander Brodsky
It is way to place axes in eny point you want. Makes plot more readable and presented.
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 (2024). Custom and centered axes for 2D plot (https://www.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 LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots >
Find more on 2-D and 3-D Plots in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.