Title: Rasterizing patch changes filling of hatches in pdf backend · Issue #6228 · matplotlib/matplotlib · GitHub
Open Graph Title: Rasterizing patch changes filling of hatches in pdf backend · Issue #6228 · matplotlib/matplotlib
X Title: Rasterizing patch changes filling of hatches in pdf backend · Issue #6228 · matplotlib/matplotlib
Description: I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using the agg backend but in the pdf backend only when it is rasterized. As the legend artists do not use the rasterized prop (correct?), it is inc...
Open Graph Description: I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using the agg backend but in the pdf backend only when it is rasterized. As the legend artists do not use t...
X Description: I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using the agg backend but in the pdf backend only when it is rasterized. As the legend artists do n...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6228
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rasterizing patch changes filling of hatches in pdf backend","articleBody":"I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using\nthe agg backend but in the pdf backend only when it is rasterized. \n\nAs the legend artists do not use the rasterized prop (correct?), it is inconsistent.\n\nmpl: 1.5.1, python 3.5.1, arch linux\n\nCode to reproduce:\n\n```\nimport matplotlib\nimport matplotlib.pyplot as plt\n\nfig = plt.figure()\nax = fig.add_subplot(111)\n\n# patch without hatching\npatch1 = matplotlib.patches.Rectangle((0.5, 0.5), 1., 1., color='red', fill=False, hatch='*', label='patch1')\n# patch with hatching\npatch2 = matplotlib.patches.Rectangle((2.0, 0.5), 1., 1., color='blue', fill=False, hatch='*', rasterized=True, label='patch2')\n\nax.add_patch(patch1)\nax.add_patch(patch2)\n\nax.set_xlim(0., 3.5)\nax.set_ylim(0., 3)\n\nax.legend()\n\n\nfig.savefig('asdf.png')\nfig.savefig('asdf.pdf')\n```\n\nPNG output:\n\n\n\nPDF output:\n\n\n","author":{"url":"https://github.com/claria","@type":"Person","name":"claria"},"datePublished":"2016-03-26T12:46:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/6228/matplotlib/issues/6228"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:27d57db9-533f-04e7-e93d-66478efb0b2b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E54E:2E7C7E:782B7E:A445F9:6A55A725 |
| html-safe-nonce | 211e27b2064f49ab9675f0d8f9f5d773ab1fc2c6ad0032dd8a919fb20bae3357 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTRFOjJFN0M3RTo3ODJCN0U6QTQ0NUY5OjZBNTVBNzI1IiwidmlzaXRvcl9pZCI6IjMyNzc1NzYyNzY4MDcyODg2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5b5edba42920a4259c1f5817585f26fb605efeaa94f3c7b31a4d220e6ab53562 |
| hovercard-subject-tag | issue:143700619 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/6228/issue_layout |
| twitter:image | https://opengraph.githubassets.com/055667ea4eb7afc93fed921f1631cd2c37cc071347274004ecd180a253da0d2e/matplotlib/matplotlib/issues/6228 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/055667ea4eb7afc93fed921f1631cd2c37cc071347274004ecd180a253da0d2e/matplotlib/matplotlib/issues/6228 |
| og:image:alt | I want to plot a patch with the '*' hatch that is filled. The hatch is always filled when using the agg backend but in the pdf backend only when it is rasterized. As the legend artists do not use t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | claria |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 653fccf1e27344851c0d3de3fa6faa526197f072 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width