title: How to force AxesSubplot to use integer tick labels
body: <p>I'm struggling to correctly apply Integerlabels to the AxesSubplot Object. Somehow all the other popular solutions don't work. I presume this has to do with the nature of how Pandas plots vs how Matplotlib natively plots a dataframe.</p>
  <p>When looking at the docs, there is a mention about preventing resolution adjustments by <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/visualization.html#suppressing-tick-resolution-adjustment" rel="nofollow noreferrer">using the optional parameter <code>x_compat</code></a> like so:</p>
  <pre class="lang-py prettyprint-override"><code>df['A'].plot(x_compat=True)
  </code></pre>
  <p>However this only throws me an error and I also can't find this parameter in the <a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.htmlhttps://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.html" rel="nofollow noreferrer">pandas 1.1.2 docs</a>.</p>
  <p>This is the code that produces the plot:</p>
  <pre class="lang-py prettyprint-override"><code>def count_id(id_val):
      plot = df[df['ID']==id_val]['TRANSCRIPTION_STRING'].value_counts().plot(kind='bar')
      plot.set_xticklabels(plot.get_xticklabels(), rotation=40, ha ='right')
      print(type(plot))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/gv6jG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gv6jG.png" alt="enter image description here" /></a></p>
  <p>I have found <a href="https://stackoverflow.com/questions/30914462/matplotlib-how-to-force-integer-tick-labels">this answer</a> and it wasn't helpful for the following reasons:</p>
  <ul>
  <li>It uses <code>.gca()</code> which throws an error for my case.</li>
  <li>It's specifically using <code>matplotlib</code> instead of <code>pandas.plot</code>, which is the same under the hood, but hardly has very different documentation and isn't obvious to work for my case. More experienced users might differ.</li>
  </ul>
  <p>It was a good suggestion and I see the similarities, but I very much tried to find it helpful before asking and it just wasn't helpful.</p>