How to Add Borders to Figures in MATLAB
Code
>> scatter(rand(10, 1), rand(10, 1))
For example, when plotting scatter plots using MATLAB, the default setting leaves the upper and right edges open, making the border invisible. To make the border visible, use the box on
command as shown below1.
>> box on
Environment
- OS: Windows
- MATLAB: 2023b