title: How to set x axis ticklabels in a seaborn plot
body: <p>I am unable to set x axis ticklabels for a seaborn <code>lineplot</code> correctly.</p>
  <pre><code>import pandas as pd
  import numpy as np
  import seaborn as sns
  import matplotlib.pyplot as plt
  
  df = pd.DataFrame({'a':np.random.rand(8),'b':np.random.rand(8)})
  sns.set(style=&quot;darkgrid&quot;)
  g = sns.lineplot(data=df)
  g.set_xticklabels(['2011','2012','2013','2014','2015','2016','2017','2018'])
  </code></pre>
  <p><a href="https://i.stack.imgur.com/EaQrr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EaQrr.png" alt="enter image description here" /></a></p>
  <p>The years on the x axis are not aligning properly.</p>