Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Setting the spacing between axis title and axis ticks labels

Hi there,

is there any way to set a size of spacing between axis title and axis labels (red area on the plot)? I’m looking for some automatic way other than simply adjusting margins like in the code below as I’m trying to come up with standardised plot layout for my team.

m <- list(l=150, r=20, b=10, t=10) # l = left; r = right; t = top; b = bottom plot_ly(mtcars, x = ~ wt, y = ~ paste0(hp, '0000')) %>% layout(margin=m)

Did you get any solution?

Nothing entirely satisfying. You can find a hack in the stack overflow topic that I have created.