You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Makes prettier axes (plots) (https://uk.mathworks.com/matlabcentral/fileexchange/166096-makes-prettier-axes-plots), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (2.69 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
