How to add padding #895
Unanswered
thistlillo
asked this question in
Q&A
Replies: 1 comment
-
You need to increase the scale expansion. scale_y_continuous(expand=(0.05, 0, 0.05, 0)) # default values, expand the bottom & top by 5%
scale_y_continuous(expand=(0, 0, 0.075, 0)) # expand the top by 7.5%
scale_y_continuous(expand=(0, 10, 0.075, 0)) # expand the bottom by 10, expand the top by 7.5% |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code for creating an histogram (I cannot share the data).
and I get this:

Now I would like to add some padding on top of the chart, to have some empty space between the highest number 264 and the border.
I am not able to do it.
I have found a parameter
plot_margin_top
. When I use it I get a bad image and I am not sure that it corresponds to the padding.Can you please help me?
Beta Was this translation helpful? Give feedback.
All reactions