<p dir="auto">I'm currently trying to compile 1.5.1 using libagg2 2.5.0.1, but unfortunately it fails with errors like <code class="notranslate">"src/agg_workaround.h", line 12: Error: conv_rgba_pre is not a member of agg.</code> so it is obviously not compatible to 2.5.0.1 anymore (but setupext.py says, it is sufficient).</p>
<p dir="auto">Digging around a little bit, I saw, that matplotlib has also an extern/agg24-svn/ but I couldn't find any information about which version it is. Basic idea is to find out about matplotlib's modifications and port it back to the system's libagg2 package, so that both are consistent and matplotlib can continue to use the system's lib instead of duplicating most of it ...</p>
<p dir="auto">So can anyone say, on what exactly extern/agg24-svn/ is based on and what matplotlib team's intention is wrt. its current/future state?</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto">Autoscaling should produce equal margins on both sides of the plotted data. However it does not do so in certain cases.</p>

<p dir="auto"><strong>Code for reproduction</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
plt.rcParams[&quot;figure.figsize&quot;] = 5,3

plt.scatter([.4],[.5])
plt.scatter([.6],[.6])

plt.show()"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = 5,3

plt.scatter([.4],[.5])
plt.scatter([.6],[.6])

plt.show()
</code></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/23121882/37559472-3c6fd598-2a27-11e8-83c3-d0b4946f7e8a.png"><img src="https://user-images.githubusercontent.com/23121882/37559472-3c6fd598-2a27-11e8-83c3-d0b4946f7e8a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">We would expect to have the same margin on all sides, e.g. the blue dot should be as far away from the lower left corner than the orange dot from the upper right corner.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/37559479-772f7e04-2a27-11e8-94ef-d8394a30dd1d.png"><img src="https://user-images.githubusercontent.com/23121882/37559479-772f7e04-2a27-11e8-94ef-d8394a30dd1d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating system: Windows 8.1</li>
<li>Matplotlib version: 2.2</li>
<li>Matplotlib backend: Qt4Agg, Qt4Cairo, TkAgg, TkCairo</li>
<li>Python version: 2.7.10</li>
</ul>