<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>

<p dir="auto">When trying to show a figure under the <code class="notranslate">TkAgg</code> backend, my system crashes when calling <code class="notranslate">plt.show()</code> (some quick googling led me to a seemingly similar <a href="https://github.com/matplotlib/matplotlib/issues/10883" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/10883/hovercard">issue #10833</a>).</p>
<p dir="auto"><strong>Code for reproduction</strong></p>

<p dir="auto">I use the following script:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import sys
print(&quot;Python&quot;, sys.version)

import matplotlib
matplotlib.use(&quot;TkAgg&quot;) # use interactive Agg backend
print(&quot;Matplotlib&quot;, matplotlib.__version__, &quot;(backend: &quot; + matplotlib.get_backend() + ')')
import matplotlib.pyplot as plt

plt.plot([0], [0])

plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">sys</span>
<span class="pl-en">print</span>(<span class="pl-s">"Python"</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>)

<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">"TkAgg"</span>) <span class="pl-c"># use interactive Agg backend</span>
<span class="pl-en">print</span>(<span class="pl-s">"Matplotlib"</span>, <span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>, <span class="pl-s">"(backend: "</span> <span class="pl-c1">+</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">get_backend</span>() <span class="pl-c1">+</span> <span class="pl-s">')'</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">0</span>], [<span class="pl-c1">0</span>])

<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>

<p dir="auto">When running this, my system crashes and immediately prompts the log-in screen. When logging back in, all the programs that were running restart, as if the system completely restarted.</p>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">When leaving out the line specifying to use the <code class="notranslate">TkAgg</code> backend, the code shows the empty plot as expected, as well as the output:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Python 3.7.3 (default, Mar 27 2019, 16:54:48) 
[Clang 4.0.1 (tags/RELEASE_401/final)]
Matplotlib 3.1.0 (backend: MacOSX)"><pre class="notranslate"><span class="pl-v">Python</span> <span class="pl-c1">3.7</span><span class="pl-c1">.3</span> (<span class="pl-s1">default</span>, <span class="pl-v">Mar</span> <span class="pl-c1">27</span> <span class="pl-c1">2019</span>, <span class="pl-c1">16</span>:<span class="pl-c1">54</span>:<span class="pl-c1">48</span>) 
[<span class="pl-v">Clang</span> <span class="pl-c1">4.0</span><span class="pl-c1">.1</span> (<span class="pl-s1">tags</span><span class="pl-c1">/</span><span class="pl-v">RELEASE_401</span><span class="pl-c1">/</span><span class="pl-s1">final</span>)]
<span class="pl-v">Matplotlib</span> <span class="pl-c1">3.1</span><span class="pl-c1">.0</span> (<span class="pl-s1">backend</span>: <span class="pl-v">MacOSX</span>)</pre></div>
<p dir="auto">Alternatively, leaving out the <code class="notranslate">plt.show()</code> command means the code does not cause any trouble, either.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Mac OSX 10.14.6</li>
<li>Matplotlib version: 3.1.0</li>
<li>Matplotlib backend: MacOSX/TkAgg</li>
<li>Python version: 3.7.4</li>
</ul>
<p dir="auto">I installed the latest version of the conda distribution and run this in the base environment.</p>
<p dir="auto"><strong>Summary</strong></p>
<p dir="auto">I am looking for a one-call way to plot multiple stacked bars in one chart by giving it a 2D-Matrix for the y-axis.</p>
<p dir="auto">This feature request is similar to  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314197940" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/11048" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/11048/hovercard" href="https://github.com/matplotlib/matplotlib/pull/11048">#11048</a>, where the bars are placed next to each other.</p>
<p dir="auto">The documentation for <a href="https://matplotlib.org/api/_as_gen/matplotlib.pyplot.barh.html#matplotlib.pyplot.bar" rel="nofollow">matplotlib.pyplot.bar</a> just allows scalar or array-like inputs.</p>
<p dir="auto">The data used contains 2 x 8760 timesteps (hours). ATM I work with stackplot to generate the following graphs. Just the third graph is relevant to this issue.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25903724/56910093-ff7e5f00-6aa9-11e9-812c-d557a19b9ae2.png"><img src="https://user-images.githubusercontent.com/25903724/56910093-ff7e5f00-6aa9-11e9-812c-d557a19b9ae2.png" alt="Figure_1" style="max-width: 100%;"></a></p>
<p dir="auto">My workaround would be to use stackplot for a lineplot:<br>
`ax1.stackplot(x,y, labels=labels)<br>
and duplicate the data in 'y' - shift the duplication just a second before the next timestep (hour) and merge those sets.</p>
<p dir="auto"><strong>Expected outcome</strong><br>
I found a <a href="https://stackoverflow.com/a/50205834/11427821" rel="nofollow">function</a> that fits my problem but is not scalable for bigger arrays. (creation time is long and editing the view takes forever) But the bars in this case have a gap between the bars. I am looking for a way to adjust the width, so the gaps can be closed.<br>
I think the value and x-axis labels are responsible for the long calculation, but I am not sure.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Windows 10</li>
<li>Matplotlib version: 3.03</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li>
<li>Python version: 3.6.7</li>
</ul>