<h3 dir="auto">Bug summary</h3>
<p dir="auto">When drawing with hatches, dots show up in PDF as circles but they render fine as PNGs.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(6, 3))
ax.bar([1], height=4, hatch=&quot;.&quot;)
plt.savefig(&quot;demo.pdf&quot;)

fig, ax = plt.subplots(figsize=(6, 3))
ax.bar([1], height=4, hatch=&quot;.&quot;)
plt.savefig(&quot;demo.png&quot;, dpi=300)"><pre class="notranslate"><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">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">3</span>))
<span class="pl-s1">ax</span>.<span class="pl-en">bar</span>([<span class="pl-c1">1</span>], <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">hatch</span><span class="pl-c1">=</span><span class="pl-s">"."</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"demo.pdf"</span>)

<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>, <span class="pl-c1">3</span>))
<span class="pl-s1">ax</span>.<span class="pl-en">bar</span>([<span class="pl-c1">1</span>], <span class="pl-s1">height</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">hatch</span><span class="pl-c1">=</span><span class="pl-s">"."</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"demo.png"</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">300</span>)</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><strong>PDF</strong><br>
<a href="https://github.com/matplotlib/matplotlib/files/8510681/demo.pdf">demo.pdf</a><br>
PDF converted as png<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2891235/163945882-3d67e72c-b27b-42e1-b4f9-991da8dcacaf.png"><img src="https://user-images.githubusercontent.com/2891235/163945882-3d67e72c-b27b-42e1-b4f9-991da8dcacaf.png" alt="demo" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>PNG</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2891235/163945922-f9407bd2-ebd6-4693-af55-ebbeeede0f87.png"><img src="https://user-images.githubusercontent.com/2891235/163945922-f9407bd2-ebd6-4693-af55-ebbeeede0f87.png" alt="demo" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">The PNG and the PDF should look the same.</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">macOS 12.3.1</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.4.3</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">module://matplotlib_inline.backend_inline (inside jupyter notebook), PDF backend when generating PDF</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">Python 3.8.9</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">6.4.0</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">The baseline images for the test_clipping test (clip_path_clipping.{png,pdf,svg}) clearly show differences in rendering between agg, pdf and svg:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1322974/34085872-25235e64-e34b-11e7-94e5-42b2f5ff9845.png"><img src="https://user-images.githubusercontent.com/1322974/34085872-25235e64-e34b-11e7-94e5-42b2f5ff9845.png" alt="clip_path_clipping" style="max-width: 100%;"></a></p>
<p dir="auto">top left is the svg baseline rendered by inkview (inkscape) 0.92.2, top right is the png baseline, bottom left is the pdf baseline rendered by okular 17.08.3, bottom right is the pdf baseline rendered by gs 9.22 (gs is used by the testing framework to rasterize the pdf for image comparisons).</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">N/A</p>
<p dir="auto"><strong>Actual outcome</strong></p>
<ul dir="auto">
<li>the colors of the stars are slightly different between png and svg.</li>
<li>the pdf backend render the stars as empty rather than filled.</li>
</ul>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">All three backends should render hatching in a similar manner.</p>
<p dir="auto">(As a side note, mplcairo generates pdf and svg that render like the png.)</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

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