title: How to remove repeated date tick labels
body: <p>I'm trying to plot 63 years of monthly data and some labels are repeating (indicated by arrows), illustrated by the following figure:</p>
  
  <p><img src="https://i.stack.imgur.com/mkcZg.jpg" alt=""></p>
  
  <p>In order to handle x-labels, I used the following code:</p>
  
  <pre><code>xdate = datenum (datestring2, 'yyyy/mm');
  plot (xdate,data1.data(:,4), 'b', xdate,data1.data(:,6),'r', ...
  xdate,data1.data(:,8),'k', xdate,data1.data(:,10),'g');
  xtic=xdate(1):12:xdate(end); 
  set(gca,'XTick',xtic);
  datetick('x', 'mm/yyyy', 'keepticks');
  </code></pre>
  
  <p>How can I solve that issue?</p>