Makes prettier axes (plots)
Version 1.0.0 (2.69 KB) by
Pablo
It changes the current axis to arrows, making your plot more visually appealing.
It changes the current axis to arrows, making your plot prettier and ready for insertion in presentations or documents where precision is less important than the concept.
Example:
f = @(x) (exp(-pi*x.^2));
x = -2:0.05:2;
plot(x,f(x),'LineWidth',2);
axis([-2 2 0 1.2])
% Default
% pretty_axis;
% With labels and not centered
data.xlabel = '$x$';
data.ylabel = '$f(x)$';
data.fontsize = 20;
data.axis_centered = false;
pretty_axis(data);
Cite As
Pablo (2025). Makes prettier axes (plots) (https://uk.mathworks.com/matlabcentral/fileexchange/166096-makes-prettier-axes-plots), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
