title: How to set the axis tick to be only major on python
body: <p><img src="https://i.stack.imgur.com/1elRs.png" alt="enter image description here">I am using a contour plot to generate a table of values (I'm interested in the deviance between cases and not the actual value). The Z axis is a regular 2d array of values. The X and Y axis however are 2d vectors which I convert to a number using this formula:</p>
  
  <pre><code>v = (x,y)
  val = x*5 + y + 2
  </code></pre>
  
  <p>where <code>0&lt;=x&lt;=2</code> and <code>-2&lt;=y&lt;=2</code>. </p>
  
  <p>I want the axis to include all the vector pairs so I created an array (<code>xlabels</code>) which looks like:  </p>
  
  <pre><code>xlabel=[[0,-2], [0,-1], ..., [0,2], ... , [2,1], 2,2]]
  </code></pre>
  
  <p>When I try to apply this to my plot, I get only the first set of values which are set the major ticks label. The line I use is:</p>
  
  <pre><code>ax1.set_xticklabels(xlabels)
  </code></pre>
  
  <p>and the result I get (the top xaxis):</p>
  
  <p>How can I set the xaxis labels to all appear? </p>