title: How to plot periodic data with matplotlib
body: <p>My data recording system has center values [0,10,20,...350], and the data is assumed to collected evenly from the center points. Therefore, I want to plot histogram binned in this way: [-5,5],[5,15],[15,25] ... [345, 355]. </p>
  
  <p>The problem is that, the data are stored in [0, 360], which would make the inital and end sector just half of the data. </p>
  
  <p>Simply put, when I want to plot the data for [-5,5], the actual data ploted would just have <strong>half the size</strong>, since [-5,5] is split into [0,5] and [355,360]. You can look at the <code>0</code>,<code>355</code> bin at the pic below.</p>
  
  <pre><code>bins=np.arange(-5, 360 + 10, 10)
  df['dir'].hist(bins=bins, alpha=0.5, figsize=(15, 3))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Dhz3N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dhz3N.png" alt="enter image description here"></a></p>
  
  <p>My questions are: </p>
  
  <ol>
  <li>What would be a good way to plot circular data, so I can solve the <code>half size</code> problem?</li>
  <li>The plot has an emply sector start at <code>-50</code>, is there way to get rid of it?</li>
  </ol>