<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">TkAgg backend plots an empty figure with matplotlib=3.1.1 (python=3.7.3) installed within conda environment on MacOS=10.14.6.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>

<p dir="auto">The following lines return an empty (blank) figure in python shell</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl
mpl.use('TkAgg')
import matplotlib.pyplot as plt

f = plt.figure()
ax = f.add_subplot(1,1,1)
ax.plot(range(10))

f.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span>
<span class="pl-s1">mpl</span>.<span class="pl-en">use</span>(<span class="pl-s">'TkAgg'</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">f</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>))

<span class="pl-s1">f</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">Code runs without complaints or error messages but produces an empty figure with no frame or axes</p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">Simple line plot.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: MacOS=10.14.6</li>
<li>Matplotlib version: 3.1.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li>
<li>Python version: python=3.7.3</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul>


<p dir="auto">I have conda=4.7.11 installed and I created en environment:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda create -n test_mpl python=3.7
conda activate test_mpl"><pre class="notranslate">conda create -n test_mpl python=3.7
conda activate test_mpl</pre></div>
<p dir="auto">Then I installed Matplotlib using conda using the default channel:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda install matplotlib"><pre class="notranslate">conda install matplotlib</pre></div>
<p dir="auto">which was installed correctly:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
print(matplotlib.__version__)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.1.1"><pre class="notranslate"><code class="notranslate">3.1.1
</code></pre></div>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using the latest stable version of matplotlib (v2.2.3), running plt.plot() only displays a blank figure, regardless of chosen backend. However, the .savefig() method correctly stores an image of the plot.</p>
<p dir="auto">Switching to an older version (2.0.2) resolves the issue.</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 as mpl
mpl.use(&quot;TKAgg&quot;)

import matplotlib.pyplot as plt

plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.savefig('testfigure.png', dpi=100)
plt.show(block=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span>
<span class="pl-s1">mpl</span>.<span class="pl-en">use</span>(<span class="pl-s">"TKAgg"</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">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s">'some numbers'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'testfigure.png'</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">100</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>(<span class="pl-s1">block</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d792250a49a55f37bc197231ce87783335baf17ecf9018e823e931ea4b06bfa6/68747470733a2f2f692e696d6775722e636f6d2f666f323461714f2e706e67"><img src="https://camo.githubusercontent.com/d792250a49a55f37bc197231ce87783335baf17ecf9018e823e931ea4b06bfa6/68747470733a2f2f692e696d6775722e636f6d2f666f323461714f2e706e67" alt="Image" data-canonical-src="https://i.imgur.com/fo24aqO.png" style="max-width: 100%;"></a></p>
<p dir="auto">No code errors.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a4d6f04dc7e3eab2396f130f8d5bc518c90441d7467b10b3a6ffd73d4dfb5bb9/68747470733a2f2f692e696d6775722e636f6d2f776d65724b30422e706e67"><img src="https://camo.githubusercontent.com/a4d6f04dc7e3eab2396f130f8d5bc518c90441d7467b10b3a6ffd73d4dfb5bb9/68747470733a2f2f692e696d6775722e636f6d2f776d65724b30422e706e67" alt="Image" data-canonical-src="https://i.imgur.com/wmerK0B.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong><br>
2.2.3 - works on 2.0.2</p>
<ul dir="auto">
<li>Operating system: MacOS Mojave (10.14 Beta (18A384a))</li>
<li>Matplotlib version: 2.2.3</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li>
<li>Python version: 3.7</li>
<li>Jupyter version (if applicable): N/A</li>
<li>Other libraries: N/A</li>
</ul>
<p dir="auto">Installed via <code class="notranslate">pip install matplotlib</code></p>