René's URL Explorer Experiment


Title: The face color of a patch affects its hatches in PDF viewed with Acrobat Reader · Issue #9894 · matplotlib/matplotlib · GitHub

Open Graph Title: The face color of a patch affects its hatches in PDF viewed with Acrobat Reader · Issue #9894 · matplotlib/matplotlib

X Title: The face color of a patch affects its hatches in PDF viewed with Acrobat Reader · Issue #9894 · matplotlib/matplotlib

Description: Bug summary Originally reported in the thread of #8431. When using hatches with a patch and exporting to a PDF, the patch face color seems to also be applied to (or to overlay) the hatches when viewing the file with Acrobat Reader, which...

Open Graph Description: Bug summary Originally reported in the thread of #8431. When using hatches with a patch and exporting to a PDF, the patch face color seems to also be applied to (or to overlay) the hatches when vie...

X Description: Bug summary Originally reported in the thread of #8431. When using hatches with a patch and exporting to a PDF, the patch face color seems to also be applied to (or to overlay) the hatches when vie...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9894

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The face color of a patch affects its hatches in PDF viewed with Acrobat Reader","articleBody":"**Bug summary**\r\n\r\nOriginally reported in the thread of #8431.\r\n\r\nWhen using hatches with a patch and exporting to a PDF, the patch face color seems to also be applied to (or to overlay) the hatches when viewing the file with Acrobat Reader, which is neither the case in the Matplotlib interactive window nor when opening the same PDF with Evince. Not sure if it is the alpha value of the face color that is wrongly interpreted, or simply the z-order between the face color and the hatches.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib.patches as mpatches\r\nimport matplotlib as mpl\r\n\r\nrect = mpatches.Rectangle((0.25, 0.25), 0.5, 0.5, hatch=\"x\",\r\n                          edgecolor=\"darkred\", facecolor=[0.5, 0.5, 0.5, 0.1])\r\n\r\nfig, ax = plt.subplots()\r\nax.add_patch(rect)\r\nfig.savefig(\"with_{0}.pdf\".format(mpl.__version__))\r\n```\r\n\r\n**Actual outcome**\r\n\r\nAn exemple of the PDF produced by the snippet above:\r\n[with_2.1.0.post933+gd046efbc2.pdf](https://github.com/matplotlib/matplotlib/files/1519769/with_2.1.0.post933.gd046efbc2.pdf)\r\n\r\nA screenshot comparing this file opened with Evince (on the left) and with Acrobat Reader (on the right):\r\n![evince_vs_acroread_with_master](https://user-images.githubusercontent.com/17270724/33459568-4821c460-d5df-11e7-8078-18a3634abf60.png)\r\n\r\nI get a similar output/behavior with Matplotlib 2.0.0. However, with Matplotlib 1.5.3, something is going wrong and I am thrown the following traceback below, so I do not know if it is really a kind of regression.\r\n\r\n```\r\n# Traceback when tryin to run the MWE with tags/v1.5.3\r\n\r\n---------------------------------------------------------------------------\r\nImportError                               Traceback (most recent call last)\r\n~/Playground/Matplotlib/transparent_hatches/mwe_issue.py in \u003cmodule\u003e()\r\n     10 fig, ax = plt.subplots()\r\n     11 ax.add_patch(rect)\r\n---\u003e 12 fig.savefig(\"with_{0}.pdf\".format(mpl.__version__))\r\n\r\n~/FOSS/matplotlib/lib/matplotlib/figure.py in savefig(self, *args, **kwargs)\r\n   1561             self.set_frameon(frameon)\r\n   1562 \r\n-\u003e 1563         self.canvas.print_figure(*args, **kwargs)\r\n   1564 \r\n   1565         if frameon:\r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backends/backend_qt5agg.py in print_figure(self, *args, **kwargs)\r\n    201 \r\n    202     def print_figure(self, *args, **kwargs):\r\n--\u003e 203         FigureCanvasAgg.print_figure(self, *args, **kwargs)\r\n    204         self.draw()\r\n    205 \r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)\r\n   2137 \r\n   2138         # get canvas object and print method for format\r\n-\u003e 2139         canvas = self._get_output_canvas(format)\r\n   2140         print_method = getattr(canvas, 'print_%s' % format)\r\n   2141 \r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backend_bases.py in _get_output_canvas(self, format)\r\n   2069 \r\n   2070         # check if there is a default canvas for the requested format\r\n-\u003e 2071         canvas_class = get_registered_canvas_class(format)\r\n   2072         if canvas_class:\r\n   2073             return self.switch_backends(canvas_class)\r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backend_bases.py in get_registered_canvas_class(format)\r\n    135     backend_class = _default_backends[format]\r\n    136     if cbook.is_string_like(backend_class):\r\n--\u003e 137         backend_class = import_module(backend_class).FigureCanvas\r\n    138         _default_backends[format] = backend_class\r\n    139     return backend_class\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/__init__.py in import_module(name, package)\r\n    124                 break\r\n    125             level += 1\r\n--\u003e 126     return _bootstrap._gcd_import(name[level:], package, level)\r\n    127 \r\n    128 \r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap.py in _gcd_import(name, package, level)\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap.py in _find_and_load(name, import_)\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap.py in _find_and_load_unlocked(name, import_)\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap.py in _load_unlocked(spec)\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap_external.py in exec_module(self, module)\r\n\r\n~/anaconda3/envs/matplotlib_dev/lib/python3.6/importlib/_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)\r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backends/backend_pdf.py in \u003cmodule\u003e()\r\n     32 from matplotlib.backend_bases import RendererBase, GraphicsContextBase,\\\r\n     33     FigureManagerBase, FigureCanvasBase\r\n---\u003e 34 from matplotlib.backends.backend_mixed import MixedModeRenderer\r\n     35 from matplotlib.cbook import Bunch, is_string_like, \\\r\n     36     get_realpath_and_stat, is_writable_file_like, maxdict\r\n\r\n~/FOSS/matplotlib/lib/matplotlib/backends/backend_mixed.py in \u003cmodule\u003e()\r\n      4 from matplotlib.externals import six\r\n      5 \r\n----\u003e 6 from matplotlib._image import frombuffer\r\n      7 from matplotlib.backends.backend_agg import RendererAgg\r\n      8 from matplotlib.tight_bbox import process_figure_for_rasterizing\r\n\r\nImportError: cannot import name 'frombuffer'\r\n```\r\n\r\n**Expected outcome**\r\n\r\nThe same behavior with both PDF viewers, i.e. the hatches not being affected by the the face color of the patch. \r\n\r\n**Matplotlib version**\r\n\r\n  * Operating system: Linux (Fedora 27)\r\n  * Matplotlib version: 1.5.3, 2.0.0 and master\r\n  * Matplotlib backend (`print(matplotlib.get_backend())`):\r\n  * Python version: 3.6, from conda\r\n  * Jupyter version (if applicable):\r\n  * Other softwares: Acrobat Reader 9.5.5\r\n","author":{"url":"https://github.com/afvincent","@type":"Person","name":"afvincent"},"datePublished":"2017-11-30T23:09:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/9894/matplotlib/issues/9894"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2ee131ae-54f8-5af8-ca8e-d4eb1d7bdb5e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BA2:240794:2EB45D8:3F0F51F:6A53C1F1
html-safe-nonce3f04cf7f024012063e578e1cb6d6288c248933ebbb0145353ef3671ecdee050e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkEyOjI0MDc5NDoyRUI0NUQ4OjNGMEY1MUY6NkE1M0MxRjEiLCJ2aXNpdG9yX2lkIjoiNTY1NzM4NTE5MDk4Njg1ODk5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb3f63118f91b511cc0ffb5d6a31c2bc5745d4270ef29d2db92bb17a9b09191a7
hovercard-subject-tagissue:278302205
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/9894/issue_layout
twitter:imagehttps://opengraph.githubassets.com/41ced58058bf068ed5c6a913d9a885b0d8293d10ed1f05995dbb49bf3a265da7/matplotlib/matplotlib/issues/9894
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/41ced58058bf068ed5c6a913d9a885b0d8293d10ed1f05995dbb49bf3a265da7/matplotlib/matplotlib/issues/9894
og:image:altBug summary Originally reported in the thread of #8431. When using hatches with a patch and exporting to a PDF, the patch face color seems to also be applied to (or to overlay) the hatches when vie...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameafvincent
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/9894#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F9894
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F9894
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/9894
Reloadhttps://github.com/matplotlib/matplotlib/issues/9894
Reloadhttps://github.com/matplotlib/matplotlib/issues/9894
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/9894
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/9894
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 408 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
The face color of a patch affects its hatches in PDF viewed with Acrobat Readerhttps://github.com/matplotlib/matplotlib/issues/9894#top
backend: pdfhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20pdf%22
backend: svghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20svg%22
keepItems to be ignored by the “Stale” Github Actionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
future releaseshttps://github.com/matplotlib/matplotlib/milestone/25
https://github.com/afvincent
afvincenthttps://github.com/afvincent
on Nov 30, 2017https://github.com/matplotlib/matplotlib/issues/9894#issue-278302205
#8431https://github.com/matplotlib/matplotlib/issues/8431
with_2.1.0.post933+gd046efbc2.pdfhttps://github.com/matplotlib/matplotlib/files/1519769/with_2.1.0.post933.gd046efbc2.pdf
https://user-images.githubusercontent.com/17270724/33459568-4821c460-d5df-11e7-8078-18a3634abf60.png
backend: pdfhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20pdf%22
backend: svghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22backend%3A%20svg%22
keepItems to be ignored by the “Stale” Github Actionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22keep%22
future releasesNo due datehttps://github.com/matplotlib/matplotlib/milestone/25
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.