<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Minor ticklabels are missing at positions of major ticks.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.dates as mdates
import matplotlib.pyplot as plt

t = np.arange(&quot;2018-11-03&quot;, &quot;2018-11-06&quot;, dtype=&quot;datetime64&quot;)
x = np.random.rand(len(t))

fig, ax = plt.subplots()
ax.plot(t,x)

ax.xaxis.set_major_locator(mdates.DayLocator())
ax.xaxis.set_major_formatter(mdates.DateFormatter('\n%a'))

ax.xaxis.set_minor_locator(mdates.HourLocator((0,6,12,18)))
ax.xaxis.set_minor_formatter(mdates.DateFormatter('%H:%M'))

plt.show()"><pre class="notranslate"><code class="notranslate">import numpy as np
import matplotlib.dates as mdates
import matplotlib.pyplot as plt

t = np.arange("2018-11-03", "2018-11-06", dtype="datetime64")
x = np.random.rand(len(t))

fig, ax = plt.subplots()
ax.plot(t,x)

ax.xaxis.set_major_locator(mdates.DayLocator())
ax.xaxis.set_major_formatter(mdates.DateFormatter('\n%a'))

ax.xaxis.set_minor_locator(mdates.HourLocator((0,6,12,18)))
ax.xaxis.set_minor_formatter(mdates.DateFormatter('%H:%M'))

plt.show()
</code></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">The above code run with current master produces</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/53986707-332eaf80-411f-11e9-9d0b-4d1df4bae02a.png"><img src="https://user-images.githubusercontent.com/23121882/53986707-332eaf80-411f-11e9-9d0b-4d1df4bae02a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The minor ticklabels showing the <code class="notranslate">00:00</code> hours are missing.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The expected outcome would be the same as when running the code with matplotlib 3.0.2 or below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/53986815-7b4dd200-411f-11e9-84d2-e820792bf6ce.png"><img src="https://user-images.githubusercontent.com/23121882/53986815-7b4dd200-411f-11e9-84d2-e820792bf6ce.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I would expect to see the hours throughout.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Win8</li>
<li>Matplotlib version: master</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): any</li>
<li>Python version: 3.6</li>
</ul>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Images plotted by plt.imshow are always clipped, reglardless of the clip_on argument.</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 numpy as np
import matplotlib.pyplot as plt
from matplotlib.cbook import get_sample_data

fig = plt.figure(figsize=(10,5))
ax = plt.subplot(111)
plt.subplots_adjust(left=0.25, bottom=0.1, right=0.75, top=0.9, wspace=0, hspace=0)

# plot a line. When clip_on is set to False, the line is extended beyond the axes
ax.plot(np.linspace(0,2),np.sin(np.linspace(0,2)),clip_on=False)
plt.xlim([0,1])
plt.ylim([0,1])

# plot a bitmap. Although clip_on is set to False, it is clipped by the axes
logo = plt.imread(get_sample_data(&quot;logo2.png&quot;, asfileobj=False))
left,right, bottom, top=0.25,0.25+1.12,0.25,0.25+0.24
ax.imshow(X=logo,extent=(left, right, bottom, top),clip_on=False)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">cbook</span> <span class="pl-k">import</span> <span class="pl-s1">get_sample_data</span>

<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">10</span>,<span class="pl-c1">5</span>))
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplot</span>(<span class="pl-c1">111</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">subplots_adjust</span>(<span class="pl-s1">left</span><span class="pl-c1">=</span><span class="pl-c1">0.25</span>, <span class="pl-s1">bottom</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">right</span><span class="pl-c1">=</span><span class="pl-c1">0.75</span>, <span class="pl-s1">top</span><span class="pl-c1">=</span><span class="pl-c1">0.9</span>, <span class="pl-s1">wspace</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">hspace</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)

<span class="pl-c"># plot a line. When clip_on is set to False, the line is extended beyond the axes</span>
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">2</span>),<span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">0</span>,<span class="pl-c1">2</span>)),<span class="pl-s1">clip_on</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>([<span class="pl-c1">0</span>,<span class="pl-c1">1</span>])

<span class="pl-c"># plot a bitmap. Although clip_on is set to False, it is clipped by the axes</span>
<span class="pl-s1">logo</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">imread</span>(<span class="pl-en">get_sample_data</span>(<span class="pl-s">"logo2.png"</span>, <span class="pl-s1">asfileobj</span><span class="pl-c1">=</span><span class="pl-c1">False</span>))
<span class="pl-s1">left</span>,<span class="pl-s1">right</span>, <span class="pl-s1">bottom</span>, <span class="pl-s1">top</span><span class="pl-c1">=</span><span class="pl-c1">0.25</span>,<span class="pl-c1">0.25</span><span class="pl-c1">+</span><span class="pl-c1">1.12</span>,<span class="pl-c1">0.25</span>,<span class="pl-c1">0.25</span><span class="pl-c1">+</span><span class="pl-c1">0.24</span>
<span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-v">X</span><span class="pl-c1">=</span><span class="pl-s1">logo</span>,<span class="pl-s1">extent</span><span class="pl-c1">=</span>(<span class="pl-s1">left</span>, <span class="pl-s1">right</span>, <span class="pl-s1">bottom</span>, <span class="pl-s1">top</span>),<span class="pl-s1">clip_on</span><span class="pl-c1">=</span><span class="pl-c1">False</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/10431558/67646282-bf3a5500-f903-11e9-8713-1305721de741.png"><img src="https://user-images.githubusercontent.com/10431558/67646282-bf3a5500-f903-11e9-8713-1305721de741.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong><br>
The matplotlib logo shouldn't be clipped by the axes, since clip_on was set to False.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Ubuntu 18.04</li>
<li>Matplotlib version: : 3.1.1 (pip installation)</li>
<li>Matplotlib backend: Qt5Agg</li>
<li>Python version: 3.6</li>
</ul>