title: Python matplotlib 3d bar function
body: <p>How to add strings to the axes in Axes3D instead of numbers?</p>
  
  <p>I just started using the matplotlib. I have used Axes3dD to plot similar to the example given on their website (<a href="http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html" rel="nofollow noreferrer">http://matplotlib.sourceforge.net/examples/mplot3d/bars3d_demo.html</a>). Note that one must use the last verson (matplotlib 0.99.1), otherwise the axis gets a bit freaky. The example use this code:</p>
  
  <pre><code>from mpl_toolkits.mplot3d import Axes3D  
  import matplotlib.pyplot as plt  
  import numpy as np  
  
  fig = plt.figure()  
  ax = Axes3D(fig)  
  for c, z in zip(['r', 'g', 'b', 'y'], [30, 20, 10, 0]):
      xs = np.arange(20)
      ys = np.random.rand(20)
      ax.bar(xs, ys, zs=z, zdir='y', color=c, alpha=0.8)
  
  ax.set_xlabel('X')
  ax.set_ylabel('Y')
  ax.set_zlabel('Z')
  plt.show()
  </code></pre>
  
  <p>Now to my problem, I cant rename the axis to what I want. Instead of numbers i need to name the staples to string names. This I only want to do in two dimensions - the x dimension, and the z dimension (depth). I have tried to use this command:</p>
  
  <pre><code>ax.set_xticklabels('First staple',(0,0))
  </code></pre>
  
  <p>I get no error message but nevertheless no sting. If anyone can answer this question I would be most delighted!</p>