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.
Can you try setting
True and see if that helps? This was added to Plotly.js relatively recently, so it’s not on by default for backwards compatibility.
That fixed the problem. Thanks!