<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Given clean loglog data, loglog subplots with shared axes work correctly. Given arbitrary loglog data, axis labels are removed incompletely.</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

x_pass = np.logspace(1, 2, 3)
y1_pass = x_pass
y2_pass = 10*x_pass

x_fail = np.array([56., 140., 420.])
y1_fail = x_fail
y2_fail = 10*x_fail

f, ax = plt.subplots(2, sharex=True)
ax[0].loglog(x_pass, y1_pass, 'o')
ax[1].loglog(x_pass, y2_pass, 'o')

f, ax = plt.subplots(2, sharex=True)
ax[0].loglog(x_fail, y1_fail, 'o')
ax[1].loglog(x_fail, y2_fail, 'o')"><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-s1">x_pass</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">logspace</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>)
<span class="pl-s1">y1_pass</span> <span class="pl-c1">=</span> <span class="pl-s1">x_pass</span>
<span class="pl-s1">y2_pass</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-c1">*</span><span class="pl-s1">x_pass</span>

<span class="pl-s1">x_fail</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">56.</span>, <span class="pl-c1">140.</span>, <span class="pl-c1">420.</span>])
<span class="pl-s1">y1_fail</span> <span class="pl-c1">=</span> <span class="pl-s1">x_fail</span>
<span class="pl-s1">y2_fail</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span><span class="pl-c1">*</span><span class="pl-s1">x_fail</span>

<span class="pl-s1">f</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">loglog</span>(<span class="pl-s1">x_pass</span>, <span class="pl-s1">y1_pass</span>, <span class="pl-s">'o'</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">loglog</span>(<span class="pl-s1">x_pass</span>, <span class="pl-s1">y2_pass</span>, <span class="pl-s">'o'</span>)

<span class="pl-s1">f</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">loglog</span>(<span class="pl-s1">x_fail</span>, <span class="pl-s1">y1_fail</span>, <span class="pl-s">'o'</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">loglog</span>(<span class="pl-s1">x_fail</span>, <span class="pl-s1">y2_fail</span>, <span class="pl-s">'o'</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/1451881/28999306-2ee9096a-7a07-11e7-9810-34351941f4c3.png"><img src="https://user-images.githubusercontent.com/1451881/28999306-2ee9096a-7a07-11e7-9810-34351941f4c3.png" alt="correct" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1451881/28999305-29581068-7a07-11e7-886f-0fe51700eb0b.png"><img src="https://user-images.githubusercontent.com/1451881/28999305-29581068-7a07-11e7-886f-0fe51700eb0b.png" alt="incorrect" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">The upper subplot in the second figure should hide all its x axis labels, similar to the upper subplot in the first figure.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating System: MacOS 10.12.6</li>
<li>Matplotlib Version: 2.0.2</li>
<li>Python Version: 3.6.1 (Python 5.3.0)</li>
<li>Other Libraries: numpy 1.12.1</li>
</ul>


<p dir="auto">Installed from Anaconda3-4.4.0-MacOSX-x86_64.pkg</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">If multiple subplots are created using the <code class="notranslate">subplots</code> function with <code class="notranslate">sharex=True</code> or <code class="notranslate">sharey=True</code>, only the outer axes should have tick labels. However, when having logarithmic axes, only this is only true for major tick labels.</p>
<p dir="auto">The bug also appears when using <code class="notranslate">AxesGrid</code> instead of <code class="notranslate">subplots</code>.</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="fig, ax = plt.subplots(2, 2, sharex=True, sharey=True, squeeze=False)
for a in ax.flatten():
    a.plot([10, 20, 30], [10, 20, 30])
a.set_yscale(&quot;log&quot;)
a.set_xscale(&quot;log&quot;)"><pre class="notranslate"><span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">sharey</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">squeeze</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">for</span> <span class="pl-s1">a</span> <span class="pl-c1">in</span> <span class="pl-s1">ax</span>.<span class="pl-en">flatten</span>():
    <span class="pl-s1">a</span>.<span class="pl-en">plot</span>([<span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">30</span>], [<span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">30</span>])
<span class="pl-s1">a</span>.<span class="pl-en">set_yscale</span>(<span class="pl-s">"log"</span>)
<span class="pl-s1">a</span>.<span class="pl-en">set_xscale</span>(<span class="pl-s">"log"</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/13418822/28286239-cfd7da7e-6b37-11e7-9d6f-3c9187f69fda.png"><img src="https://user-images.githubusercontent.com/13418822/28286239-cfd7da7e-6b37-11e7-9d6f-3c9187f69fda.png" alt="log_shared_axes" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">No x (including minor) tick labels for the upper axes, no y tick labels for the right axes.</p>


<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating System: Linux</li>
<li>Matplotlib Version: 2.0.2 (anaconda package)</li>
<li>Python Version: 3.6</li>
</ul>