title: How to set ticks on Fixed Position , matplotlib
body: <p>Can anyone help me set the ticks on a fixed position using matplotlib? I've tried using FixedPosition as this tutorial describes:</p>
  
  <pre><code>ax = pl.gca()
  ax.xaxis.set_major_locator(eval(locator))
  </code></pre>
  
  <p><a href="http://scipy-lectures.github.io/intro/matplotlib/matplotlib.html#figures-subplots-axes-and-ticks">http://scipy-lectures.github.io/intro/matplotlib/matplotlib.html#figures-subplots-axes-and-ticks</a></p>
  
  <p>But when I try to run, it tells me that set_major_locator method does not exist.</p>
  
  <p>A simple example would be very useful.</p>
  
  <p>Thanks.</p>