title: How to format python matplotlib Time labels for wrap around?
body: <p>I am working on a tool to print play times of bands. Now some bands will play in the night (or rather very early next day, e.g. 23:45 - 0:30, 0:30 - 1:30), however they should then still be considered for the &quot;previous&quot; day, otherwise the schedule will not really make sense.</p>
  <p><a href="https://i.stack.imgur.com/FcnDx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FcnDx.png" alt="example image of the running order with entries on day change" /></a></p>
  <p>As you can see in the screenshot, it works in general, however the Time labels will not wrap around (automatically). I'm very new to python, so sorry if this trivial, but I can't figure out how to &quot;make the labels behave&quot;.</p>
  <p>My current setup looks like this:</p>
  <pre><code>axis_bl = fig.add_subplot(111)
  axis_bl.yaxis.grid()
  axis_bl.set_xlim(0.5, len(stages) + 0.5)
  # it will be read downwards, therefore invert the time labels on the axis
  axis_bl.set_ylim(29, 10.9)
  axis_bl.set_xticks(range(1, len(stages) + 1))
  axis_bl.set_xticklabels(stages)
  axis_bl.set_ylabel('Time')
  </code></pre>
  <p>How would I go about fixing this? Also, is there an easy way to have it print a label every hour or every half hour?</p>