how to make the empty area of the boxplot smaller?
10 vues (au cours des 30 derniers jours)
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 le 30 Déc 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];