title: Rotate xtick labels in seaborn boxplot?
body: <p>I have a question that is basically the same as a question back from 2014 (see <a href="https://stackoverflow.com/questions/26540035/rotate-label-text-in-seaborn-factorplot">here</a>). However, my script still throws an error.</p>
  
  <p>Here is what I do: I have a pandas dataframe with a few columns. I plot a simple boxplot comparison. </p>
  
  <pre><code>g = sns.boxplot(x='categories', y='oxygen', hue='target', data=df)
  g.set_xticklabels(rotation=30)
  </code></pre>
  
  <p>The graph looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/laX0h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/laX0h.png" alt="enter image description here"></a></p>
  
  <p>I'd like to rotate the x-labels by 30 degrees. Hence I use <code>g.set_xticklabels(rotation=30)</code>. However, I get the following error: </p>
  
  <p><code>set_xticklabels() missing 1 required positional argument: 'labels'</code></p>
  
  <p>I don't know how to pass the <code>matplotlib</code> <code>labels</code> argument to seaborns <code>sns.boxplot</code>. Any ideas? </p>