title: Rotate X labels are not fitted in the figure area
body: <p>I use the following code to create a box plot and then rotate the X labels. As you can see, the X labels are not completely in the figure area. How can I fix that?</p>
  <pre><code>plt.figure(figsize=(8, 4))
  df.boxplot()
  plt.xticks(rotation=45,ha='right', rotation_mode=&quot;anchor&quot;)
  plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/jeAB6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jeAB6.png" alt="enter image description here" /></a></p>