<p dir="auto">Hi,<br>
The following code works in version 1.2, but leads to an exception in version 1.3:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from matplotlib import pyplot as plt
&gt;&gt;&gt; plt.plot(range(10), color='none')
&gt;&gt;&gt; plt.show()"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>), <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'none'</span>)
<span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">I think the issue boils down to this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/matplotlib/matplotlib/commit/edc48f01d27c3f91c2f4460f8fff9eadbd7d2c74/hovercard" href="https://github.com/matplotlib/matplotlib/commit/edc48f01d27c3f91c2f4460f8fff9eadbd7d2c74"><tt>edc48f0</tt></a></p>
<p dir="auto">I'm not sure whether this was an intentional change.  Thanks!</p>
<h3 dir="auto">Documentation Link</h3>
<p dir="auto"><a href="https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot_mosaic.html" rel="nofollow">https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.subplot_mosaic.html</a></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Now that <code class="notranslate">pyplot</code> has inline type annotations, they show up in the API documentation and can make the calling signatures harder to read.  The figure creation functions are a particularly good example of this.</p>
<h3 dir="auto">Suggested improvement</h3>
<p dir="auto">xarray's approach is to simply <a href="https://github.com/pydata/xarray/blob/850156cf80fe8791d45bcaff2da579cffc0cfc35/doc/conf.py#L113">turn off the annotations in the docs</a>.  Perhaps there is a more nuanced solution?</p>