title: How can I remove digits after decimal in axis ticks in matplotlib?
body: <p>I have</p>
  
  <pre><code>tick_location = np.linspace(0.01, 10, num=10, endpoint=True)
  ax2.set_xticks(tick_location)
  tick_labels = np.around(1/new_tick_loc*1e4,decimals=-2)
  ax2.set_xticklabels(tick_labels)
  </code></pre>
  
  <p>This (and some additional code) produces the following plot, but I'd like to remove the decimal point and the digit after it from the tick labels on the top x axis.</p>
  
  <p>Using <a href="http://matplotlib.org/api/ticker_api.html#matplotlib.ticker.FormatStrFormatter" rel="noreferrer">matplotlib.ticker.FormatStrFormatter(fmt)</a> does not help</p>
  
  <p><a href="https://i.stack.imgur.com/pX4oL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pX4oL.png" alt="top x axis with decimal"></a></p>