We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to add space between the x-axis labels and the x-axis. But element_text(margin =) seems to be ignored?
First:
import plotnine as p9 from plotnine.data import mtcars mtcars=mtcars.head(5) (p9.ggplot(mtcars) + p9.geom_col(p9.aes(x='name',y='mpg')) + p9.labs(x='') )
So far so good. Now add space:
(p9.ggplot(mtcars) + p9.geom_col(p9.aes(x='name',y='mpg')) + p9.labs(x='') + p9.theme(axis_text_x=p9.element_text(margin={'t': 40, 'units':'pt'})) )
nothing changes
just to clarify what I want to achive, here the ggplot dplyr code:
library(tidyverse) mtcars = as_tibble(mtcars,rownames = "name") mtcars = mtcars |> head(5) ggplot(mtcars) + geom_col(aes(x=name,y=mpg))+ labs(x='')+ theme(axis.text.x = element_text(margin = margin(10)))
The text was updated successfully, but these errors were encountered:
Use axis_ticks_pad.
The margin will work in some future version.
margin
Sorry, something went wrong.
Use axis_text margin instead of axis_ticks_pad
f27cbd3
closes #843
No branches or pull requests
I want to add space between the x-axis labels and the x-axis.
But element_text(margin =) seems to be ignored?
First:
So far so good. Now add space:
nothing changes
just to clarify what I want to achive, here the ggplot dplyr code:
The text was updated successfully, but these errors were encountered: