<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto"><code class="notranslate">DayLocator</code> returning incorrect times around daylights switch over, resulting in duplicate day labels.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import datetime

import pylab
import matplotlib.dates as mdates
import pytz

x = [datetime.datetime(2017, 3, 30), datetime.datetime(2017,4,4)]
y = [0, 1]

pylab.plot(x, y)

ax = pylab.gca()

tz = pytz.timezone(&quot;Australia/Sydney&quot;)
ax.xaxis.set_major_locator(mdates.DayLocator(tz=tz))
ax.xaxis.set_major_formatter(mdates.DateFormatter(&quot;%a&quot;, tz=tz))

pylab.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">datetime</span>

<span class="pl-k">import</span> <span class="pl-s1">pylab</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">dates</span> <span class="pl-k">as</span> <span class="pl-s1">mdates</span>
<span class="pl-k">import</span> <span class="pl-s1">pytz</span>

<span class="pl-s1">x</span> <span class="pl-c1">=</span> [<span class="pl-s1">datetime</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2017</span>, <span class="pl-c1">3</span>, <span class="pl-c1">30</span>), <span class="pl-s1">datetime</span>.<span class="pl-en">datetime</span>(<span class="pl-c1">2017</span>,<span class="pl-c1">4</span>,<span class="pl-c1">4</span>)]
<span class="pl-s1">y</span> <span class="pl-c1">=</span> [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>]

<span class="pl-s1">pylab</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)

<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">pylab</span>.<span class="pl-en">gca</span>()

<span class="pl-s1">tz</span> <span class="pl-c1">=</span> <span class="pl-s1">pytz</span>.<span class="pl-en">timezone</span>(<span class="pl-s">"Australia/Sydney"</span>)
<span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">set_major_locator</span>(<span class="pl-s1">mdates</span>.<span class="pl-v">DayLocator</span>(<span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">tz</span>))
<span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">set_major_formatter</span>(<span class="pl-s1">mdates</span>.<span class="pl-v">DateFormatter</span>(<span class="pl-s">"%a"</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s1">tz</span>))

<span class="pl-s1">pylab</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
The day labels for the day of the daylight switch over are duplicated, see figure below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6415805/29203748-4c12a116-7e73-11e7-8671-e80f78a59050.png"><img src="https://user-images.githubusercontent.com/6415805/29203748-4c12a116-7e73-11e7-8671-e80f78a59050.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong><br>
The labels should not be duplicated.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating System: Kubuntu 17.04</li>
<li>Matplotlib Version: 2.02</li>
<li>Python Version: Python 2.7.13</li>
<li>pytz: 2017.2</li>
</ul>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Quiver plot issue matching key label color with arrow color</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="q=plt.quiver([1, 2,], [1, 1], [[49],[49]], [0],
   [[(0.6, 0.8, 0.5, 1.0 )],
    [(0.3, 0.1, 0.2, 1.0 )]],
       angles=[[45],[90]],
       )
plt.quiverkey(q, .5, .5, 7, r'vector2', labelcolor=(0.3, 0.1, .2, 1), labelpos='S', coordinates = 'figure')"><pre class="notranslate"><span class="pl-s1">q</span><span class="pl-c1">=</span><span class="pl-s1">plt</span>.<span class="pl-en">quiver</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>,], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>], [[<span class="pl-c1">49</span>],[<span class="pl-c1">49</span>]], [<span class="pl-c1">0</span>],
   [[(<span class="pl-c1">0.6</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">1.0</span> )],
    [(<span class="pl-c1">0.3</span>, <span class="pl-c1">0.1</span>, <span class="pl-c1">0.2</span>, <span class="pl-c1">1.0</span> )]],
       <span class="pl-s1">angles</span><span class="pl-c1">=</span>[[<span class="pl-c1">45</span>],[<span class="pl-c1">90</span>]],
       )
<span class="pl-s1">plt</span>.<span class="pl-en">quiverkey</span>(<span class="pl-s1">q</span>, <span class="pl-c1">.5</span>, <span class="pl-c1">.5</span>, <span class="pl-c1">7</span>, <span class="pl-s">r'vector2'</span>, <span class="pl-s1">labelcolor</span><span class="pl-c1">=</span>(<span class="pl-c1">0.3</span>, <span class="pl-c1">0.1</span>, <span class="pl-c1">.2</span>, <span class="pl-c1">1</span>), <span class="pl-s1">labelpos</span><span class="pl-c1">=</span><span class="pl-s">'S'</span>, <span class="pl-s1">coordinates</span> <span class="pl-c1">=</span> <span class="pl-s">'figure'</span>)</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18413274/56828417-e5146d80-687e-11e9-84be-0054b4385e2f.png"><img src="https://user-images.githubusercontent.com/18413274/56828417-e5146d80-687e-11e9-84be-0054b4385e2f.png" alt="Figure_1" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The key label color and a vector are both set to (0.3, 0.1, .2, 1) but their colors are different.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Ubuntu 18.04</li>
<li>Matplotlib version: 3.0.3</li>
<li>Matplotlib backend: TkAgg</li>
<li>Python version: 3.6</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul>

<p dir="auto">pip3 install matplotlib</p>