<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></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="# Paste your code here

import matplotlib.pyplot as plt
import numpy as np

a = np.linspace(1,5)+1e4
b = np.random.random(a.size)+1e5

fig,ax =plt.subplots(1,2,figsize=(6,3),dpi=200)
ax[0].plot(a,b)

ax[1].plot(a,b)
ax[1].tick_params(left=False,labelleft=False,
               bottom=False,labelbottom=False)
fig.show()"><pre class="notranslate"><span class="pl-c"># Paste your code here</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">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">1</span>,<span class="pl-c1">5</span>)<span class="pl-c1">+</span><span class="pl-c1">1e4</span>
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>(<span class="pl-s1">a</span>.<span class="pl-s1">size</span>)<span class="pl-c1">+</span><span class="pl-c1">1e5</span>

<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">1</span>,<span class="pl-c1">2</span>,<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>,<span class="pl-c1">3</span>),<span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">200</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">plot</span>(<span class="pl-s1">a</span>,<span class="pl-s1">b</span>)

<span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">plot</span>(<span class="pl-s1">a</span>,<span class="pl-s1">b</span>)
<span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">tick_params</span>(<span class="pl-s1">left</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,<span class="pl-s1">labelleft</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,
               <span class="pl-s1">bottom</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,<span class="pl-s1">labelbottom</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">show</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/20708119/88972797-63e42b80-d2b6-11ea-89d0-2429e014f327.png"><img src="https://user-images.githubusercontent.com/20708119/88972797-63e42b80-d2b6-11ea-89d0-2429e014f327.png" alt="issue_removing_labels" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">Both ticks and labels are removed, <strong>including</strong> the offset ones.</p>
<p dir="auto"><code class="notranslate">tick_params()</code> seems to be the most straightforward way of removing the ticks but keeping the box. Setting <code class="notranslate">labelxxx=False</code> should intuitively include all its parts. And there is no other parameter in <code class="notranslate">tick_params()</code> that could deal with it.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>
<p dir="auto">Operating system: Ubuntu 18.04</p>
</li>
<li>
<p dir="auto">Matplotlib version: 3.2.1</p>
</li>
<li>
<p dir="auto">Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://backend_interagg</p>
</li>
<li>
<p dir="auto">Python version: 3.8.3</p>
</li>
</ul>
<h3 dir="auto">Bug report</h3>
<p dir="auto">If I use an "L" configuration for the <code class="notranslate">ImageGrid</code> <code class="notranslate">label_mode</code>, then the offset text on axes still appears for all axes, even though the tick labels themselves are not present.  The "L" mode should disable the offset text where appropriate.</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 matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np

im1 = np.arange(100).reshape((10, 10))
im2 = im1.T
im3 = np.flipud(im1)
im4 = np.fliplr(im2)

fig = plt.figure(figsize=(4., 4.))
grid = ImageGrid(fig, 111,  # similar to subplot(111)
                 nrows_ncols=(2, 2),  # creates 2x2 grid of axes
                 label_mode=&quot;L&quot;,
                 axes_pad=0.2,  # pad between axes in inch.
                 )

for ax, im in zip(grid, [im1, im2, im3, im4]):
    # Iterating over the grid returns the Axes.
    ax.imshow(im, extent=[0, 1.e8, 0, 1.e8])

plt.savefig(&quot;test.png&quot;)
"><pre class="notranslate"><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">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span> <span class="pl-k">import</span> <span class="pl-v">ImageGrid</span>
<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-s1">im1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">100</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">10</span>, <span class="pl-c1">10</span>))
<span class="pl-s1">im2</span> <span class="pl-c1">=</span> <span class="pl-s1">im1</span>.<span class="pl-v">T</span>
<span class="pl-s1">im3</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">flipud</span>(<span class="pl-s1">im1</span>)
<span class="pl-s1">im4</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">fliplr</span>(<span class="pl-s1">im2</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">4.</span>, <span class="pl-c1">4.</span>))
<span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-v">ImageGrid</span>(<span class="pl-s1">fig</span>, <span class="pl-c1">111</span>,  <span class="pl-c"># similar to subplot(111)</span>
                 <span class="pl-s1">nrows_ncols</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>),  <span class="pl-c"># creates 2x2 grid of axes</span>
                 <span class="pl-s1">label_mode</span><span class="pl-c1">=</span><span class="pl-s">"L"</span>,
                 <span class="pl-s1">axes_pad</span><span class="pl-c1">=</span><span class="pl-c1">0.2</span>,  <span class="pl-c"># pad between axes in inch.</span>
                 )

<span class="pl-k">for</span> <span class="pl-s1">ax</span>, <span class="pl-s1">im</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">grid</span>, [<span class="pl-s1">im1</span>, <span class="pl-s1">im2</span>, <span class="pl-s1">im3</span>, <span class="pl-s1">im4</span>]):
    <span class="pl-c"># Iterating over the grid returns the Axes.</span>
    <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">im</span>, <span class="pl-s1">extent</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1.e8</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1.e8</span>])

<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"test.png"</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/7817509/77458510-ae1f4280-6dd4-11ea-8c44-4891d520e724.png"><img src="https://user-images.githubusercontent.com/7817509/77458510-ae1f4280-6dd4-11ea-8c44-4891d520e724.png" alt="test" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
#
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
#
#
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The 10^8 offset text on the x-axis of the upper left axes, the x- and y- on the upper right, and the y on the lower right should not be display.</p>


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

<ul dir="auto">
<li>Operating system: Fedora 31</li>
<li>Matplotlib version: 3.2.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li>
<li>Python version: 3.7.6</li>
<li>Jupyter version (if applicable): N/A</li>
<li>Other libraries:</li>
</ul>


<p dir="auto">matplotlib installed via <code class="notranslate">pip</code></p>