title: How to set fixed spaces between ticks in maptlotlib
body: <p>I am preparing a graph of latency percentile results. This is my pd.DataFrame looks like:</p>
  
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  import numpy as np
  %matplotlib inline
  result = pd.DataFrame(np.random.randint(133000, size=(5,3)), columns=list('ABC'), index=[99.0, 99.9, 99.99, 99.999, 99.9999])
  </code></pre>
  
  <p>I am using this function (commented lines are different pyplot methods I have already tried to achieve my goal):</p>
  
  <pre><code>def plot_latency_time_bar(result):
  
      ind = np.arange(4)
      means = []
      stds = []
  
      for index, row in result.iterrows():
          means.append(np.mean([row[0]//1000, row[1]//1000, row[2]//1000]))
          stds.append(np .std([row[0]//1000, row[1]//1000, row[2]//1000]))
  
      plt.bar(result.index.values, means, 0.2, yerr=stds, align='center')
  
  
      plt.xlabel('Percentile')
      plt.ylabel('Latency')
      plt.xticks(result.index.values)
  #     plt.xticks(ind, ('99.0', '99.9', '99.99', '99.999', '99.99999'))
  #     plt.autoscale(enable=False, axis='x', tight=False)
  #     plt.axis('auto')
  #     plt.margins(0.8, 0)
  #     plt.semilogx(basex=5)
      plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
  
  
      fig = plt.gcf()
      fig.set_size_inches(15.5, 10.5)
  </code></pre>
  
  <p><a href="https://imgur.com/a/SNR4p" rel="nofollow noreferrer">And here is the figure:</a></p>
  
  <p>As you can see bars for all percentiles above 99.0 overlaps and are completely unreadable. I would like to set some fixed space between ticks to have a same space between all of them.</p>