PtitPrince icon indicating copy to clipboard operation
PtitPrince copied to clipboard

Reduce "empty" space between raincloud plots

Open valosekj opened this issue 2 years ago • 3 comments

Hello!

Is there a way how to reduce "empty" white space between individual raincloud plots (highlighted by the red arrow in the screenshot below)?

reduce_empty_space

Thank you!

valosekj avatar Dec 23 '22 13:12 valosekj

I am looking to do the opposite as above haha My rainclouds are much too close to each other in the x-axis, I would like to increase that distance. It doesn't seem like such distance is hard coded unfortunately, we might have to either play with the scale and play with the xticks amount (in my case by doubling them and skipping half of them, in the above question I'm not sure if that even would work since ticks are supposed to match integers...)

Screenshot 2023-06-27 at 14 14 01

Krigsa avatar Jun 27 '23 12:06 Krigsa

Playing with the gap parameter of each element seem like a good idea to me, see eg this. For instance you can start by setting box_gap=0.1 and see what happens.

UPDATE: wrong answer probably. I'd actually adjust the figure width in f, ax = plt.subplots(figsize=(7, 5))

pog87 avatar Oct 03 '23 11:10 pog87

Adjusting the figure size makes the plots thinner :( Is there any other fix?

scienception avatar Oct 26 '23 16:10 scienception