title: Confusion matrix in python
body: <p>I am trying to create a confusion matrix in python. However as you can see in the image below, my class labels arent matching up with each other. I essentially want the y axis to start with <em>Tshirt/Top</em> and end with <em>Ankle Boots</em>. This is my code:</p>
  
  <pre><code>test_labels = test_labels.argmax(axis=1)
  predictions = predictions.argmax(axis=1)
  cm = confusion_matrix(test_labels, predictions)
  
  plt.setp(ax.xaxis.set_ticklabels(class_names), rotation=90, horizontalalignment='right')
  plt.setp(ax.yaxis.set_ticklabels(class_names), rotation=360, horizontalalignment='right')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5EYpw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5EYpw.png" alt="enter image description here"></a></p>
  
  <p>I am new to python so im not sure what I am doing wrong.</p>