title: How to present all values on a crowded axis of a matplotlib figure?
body: <p>I would like to plot a graph with the following axis labels:</p>
  
  <p>x-axis values: </p>
  
  <pre><code>range(2,52,2) #processors
  </code></pre>
  
  <p>z-axis values:</p>
  
  <pre><code>[2&lt;&lt;exponent for exponent in range(10)]#clusters
  </code></pre>
  
  <p>I need the exact values above to appear in the x- and z-axis.</p>
  
  <p>I tried: </p>
  
  <pre><code>from mpl_toolkits.mplot3d import Axes3D
  import matplotlib.pyplot as plt
  
  fig = plt.figure()
  ax = fig.gca(projection='3d')
  
  xs = range(2,52,2) #processors
  plt.xticks(xs)
  ys = range(0, 251) #time
  #plt.yticks(ys)
  zs = [2&lt;&lt;exponent for exponent in range(10)]#clusters
  ax.set_zticks(zs)
  
  # Tweaking display region and labels
  ax.set_xlim(2, 52)
  ax.set_ylim(0, 251)
  ax.set_zlim(0, 1025)
  ax.set_xlabel('Number of processors')
  ax.set_ylabel('Time')
  ax.set_zlabel('Number of clusters')
  
  plt.show()
  </code></pre>
  
  <p>The result is:</p>
  
  <p><a href="https://i.stack.imgur.com/AQgT8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AQgT8.png" alt="enter image description here"></a></p>
  
  <p>But I cannot see the exact values of the z-axis. The z-axis does not show the exact values because they overlap! </p>
  
  <p>What is wrong?</p>