How to change the padding of a graph


#1

Here the margins around the graphs are super thin. Whenever I make a graph the padding is massive. How can I change this?

Edit: I am ussing the suggested style sheet (albeit very slightly modified) if that matters, but I don’t see how it would.


How to set padding between graph data and graph limits?
#2

https://codepen.io/chriddyp/pen/bWLwgP.css the style sheet, for some reason I am not allowed to post more than 2 links.


#3

It’s done in the plotly layout:


#4

figure = {
‘data’: data,
go.Layout(margin=dict(t=50))
}

Just to be clear I was talking about the graph layout and not the app.Layout()


#5

Thank you! Looks much better now :smile: