Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce "empty" space between raincloud plots #33

Open
valosekj opened this issue Dec 23, 2022 · 3 comments
Open

Reduce "empty" space between raincloud plots #33

valosekj opened this issue Dec 23, 2022 · 3 comments

Comments

@valosekj
Copy link

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!

@Krigsa
Copy link

Krigsa commented Jun 27, 2023

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

@pog87
Copy link
Owner

pog87 commented Oct 3, 2023

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))

@scienception
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants