X Axis Tic Labels Truncated

I am using plotly offline with Python to create a DIV that is inserted in another web page. As shown in the plot below, when the X range is such that the labels print diagonally, they fall off the bottom of the plot. Shouldn’t the height automatically scale so that this doesn’t happen? I can reserve extra space with a bottom margin, but then there is just a huge blank area when the labels are not diagonal.

Hi @crj11,

Can you try setting layout.xaxis.automargin to True and see if that helps? This was added to Plotly.js relatively recently, so it’s not on by default for backwards compatibility.

-Jon

1 Like

That fixed the problem. Thanks!

1 Like