title: Date format issues in plot ticks with matplotlib.dates (and datestr2num)
body: <p>I'm using matplotlib.dates to plot a bar chart with instances occurring on specific dates (presented as a list of strings), and using matplotlib.dates.datestr2num to display two sets of data per date (as per the top answer in <a href="https://stackoverflow.com/questions/14270391/python-matplotlib-multiple-bars">Python matplotlib multiple bars</a>).</p>
  
  <p>However, for dates below the 12th day of the month, the plot is interpreting the dates in MM/DD/YY format, while for dates above the 12th day of the month it is interpreting the dates as DD/MM/YY, causing the data to jump around the plot. I think the issue might be in how I'm using datestr2num, but not sure how to force it to be in one format or another.</p>
  
  <pre><code>import matplotlib.pyplot as plt
  from matplotlib.dates import DateFormatter, AutoDateLocator, AutoDateFormatter, datestr2num
  
  days = ['30/01/2019', '31/01/2019', '01/02/2019', '02/02/2019', '03/02/2019', '04/02/2019']
  adata = [1, 9, 10, 3, 7, 6]
  bdata = [1, 2, 11, 3, 6, 2]
  
  x=datestr2num(days)
  
  w=0.25
  fig = plt.figure(figsize = (8,4))
  ax = fig.add_subplot(111)
  ax.bar(x-w, adata, width=2*w, color='g', align='center', tick_label = days)
  ax.bar(x+w, bdata, width=2*w, color='r', align='center', tick_label = days)
  ax.xaxis_date()
  ax.xaxis.set_major_locator(AutoDateLocator(minticks=3, interval_multiples=False))
  ax.xaxis.set_major_formatter(DateFormatter("%d/%m/%y"))
  
  plt.show()
  </code></pre>
  
  <p>In the example above, <code>adata</code> and <code>bdata</code> are on subsequent dates (30th Jan to 4th Feb), with all the bars shown as next to each other but the plot displays the data between the 2nd of Jan and the 2nd of Apr, making the data appear out of order.</p>
  
  <p>Any help or clarifiaction would be helpful, thanks!</p>
  
  <p><img src="https://i.stack.imgur.com/Zdv1c.png" alt="Image of the output from above"></p>