title: Python polar clock-like plot with matplotlib
body: <p>I am trying to plot data in a clock-wise fashion using matplotlib in Python in the style of <a href="https://stackoverflow.com/questions/25898523/how-to-plot-points-on-a-clock">this answer</a>. I noticed weird behaviour when plotting my data; the data points had the correct y value, but would not appear at the correct x values, i.e. times. I first thought that my data was erroneous, but upon recreating my problem with the following working example I came to the conclusion that the mistake must be somewhere else.</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt     
  
  ax = plt.subplot(111, polar=True)
  equals = np.linspace(0, 360, 24, endpoint=False) #np.arange(24)
  ones = np.ones(24)
  ax.scatter(equals, ones)       
  
  # Set the circumference labels
  ax.set_xticks(np.linspace(0, 2*np.pi, 24, endpoint=False))
  ax.set_xticklabels(range(24))      
  
  # Make the labels go clockwise
  ax.set_theta_direction(-1)       
  
  # Place 0 at the top
  ax.set_theta_offset(np.pi/2.0)       
  
  plt.show()
  </code></pre>
  
  <p>This results in the following plot:
  <a href="https://i.stack.imgur.com/horpJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/horpJ.png" alt="enter image description here"></a></p>
  
  <p>I would have expected that the x values of the points line up with the hours, considering the definition of <code>equals</code>. It is currently defined as an angle, but I also tried defining it as an hour. Why is this not the case and how can I get my data to line up with the corresponding time?</p>