how to make the empty area of the boxplot smaller?
9 views (last 30 days)
Here is the code I use:
I want to make the empty area around the box smaller. There is huge empty area befor and after number 1 in x-axis and I want to make it smaller. How can I do that?
but it made the width of box larger which I dont want.
Abhilash Padma on 30 Dec 2019
You could use the “PlotBoxAspectRatio” property of axes to decrease the size of x-axis so that you can make the empty area of the boxplot smaller. See the following code:
ax.PlotBoxAspectRatio=[0.3 1 1];