<divid="unreleased-message"> You are reading an old version of the documentation (v2.0.0). For the latest version see <ahref="/stable/">https://matplotlib.org/stable/</a></div>
<spanid="gridspec-guide"></span><h1>Customizing Location of Subplot Using GridSpec<aclass="headerlink" href="#customizing-location-of-subplot-using-gridspec" title="Permalink to this headline">¶</a></h1>
<h2>A Complex Nested GridSpec using SubplotSpec<aclass="headerlink" href="#a-complex-nested-gridspec-using-subplotspec" title="Permalink to this headline">¶</a></h2>
<p>Here’s a more sophisticated example of nested gridspec where we put
a box around each cell of the outer 4x4 grid, by hiding appropriate