Title: Fill color is always opaque in the pdf backend if there is a hatch pattern · Issue #3841 · matplotlib/matplotlib · GitHub
Open Graph Title: Fill color is always opaque in the pdf backend if there is a hatch pattern · Issue #3841 · matplotlib/matplotlib
X Title: Fill color is always opaque in the pdf backend if there is a hatch pattern · Issue #3841 · matplotlib/matplotlib
Description: I've posted this issue on StackOverflow as: http://stackoverflow.com/questions/27094747/ The basic problem is that transparency information isn't being correctly to PDFs when hatching is used. I'm running in OS X (Yosemite) with the defa...
Open Graph Description: I've posted this issue on StackOverflow as: http://stackoverflow.com/questions/27094747/ The basic problem is that transparency information isn't being correctly to PDFs when hatching is used. I'm ...
X Description: I've posted this issue on StackOverflow as: http://stackoverflow.com/questions/27094747/ The basic problem is that transparency information isn't being correctly to PDFs when hatching is us...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3841
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fill color is always opaque in the pdf backend if there is a hatch pattern","articleBody":"I've posted this issue on StackOverflow as: http://stackoverflow.com/questions/27094747/\n\nThe basic problem is that transparency information isn't being correctly to PDFs when hatching is used.\n\nI'm running in OS X (Yosemite) with the default MacOSX matplotlib backend and using matplotlib 1.4.1. Is there any reason why this setup should fail to produce transparent PDF output? This used to work in the past (with OS X Mavericks and an earlier version of matplotlib) but I'm not sure exactly what change has caused this problem.\n\nIf the following code is run, the problem can be seen in with_hatch.pdf, but not in any of the other output files.\n\n```\n#! /usr/bin/env python\nimport matplotlib.pyplot as plt\n\nfig = plt.figure( figsize=(6, 6), dpi=100, facecolor='white' )\nax = fig.add_axes( [0.15, 0.1, 0.8, 0.85] )\n\nbin_edges = [0.0, 0.5, 0.5, 1.0, 1.0, 1.5, 1.5, 2.0, 2.0, 2.5, 2.5, 3.0, 3.0, 3.5, 3.5, 4.0, 4.0, 4.5, 4.5, 5.0, 5.0, 5.5, 5.5, 6.0, 6.0, 7.0, 7.0, 8.0]\ny_low = [0.9581631739289882, 0.9581631739289882, 0.8966054746563691, 0.8966054746563691, 0.8369962202270926, 0.8369962202270926, 0.7824880045351325, 0.7824880045351325, 0.7231695683685057, 0.7231695683685057, 0.6673767757896321, 0.6673767757896321, 0.6083447707111752, 0.6083447707111752, 0.5602384968623321, 0.5602384968623321, 0.5109567893600544, 0.5109567893600544, 0.4707872827805316, 0.4707872827805316, 0.4304527769718274, 0.4304527769718274, 0.39024135798617826, 0.39024135798617826, 0.3593458738615755, 0.3593458738615755, 0.3275704585658484, 0.3275704585658484]\ny_high = [0.9762065896798683, 0.9762065896798683, 0.9227253843496172, 0.9227253843496172, 0.8738222849514, 0.8738222849514, 0.8299500683866315, 0.8299500683866315, 0.7810616940586165, 0.7810616940586165, 0.7357506442258693, 0.7357506442258693, 0.6852756294051707, 0.6852756294051707, 0.6441575476130643, 0.6441575476130643, 0.5987788803224889, 0.5987788803224889, 0.5630257208701298, 0.5630257208701298, 0.5274860424153797, 0.5274860424153797, 0.4915335923551736, 0.4915335923551736, 0.46502435263727837, 0.46502435263727837, 0.43196895235913746, 0.43196895235913746]\n\nax.fill_between( bin_edges, y_low, y_high, facecolor='green', edgecolor='white', alpha=0.4 )\n\nplt.savefig( 'without_hatch.pdf' )\nplt.savefig( 'without_hatch.png' )\n\nax.fill_between( bin_edges, y_low, y_high, facecolor='green', edgecolor='white', hatch='xxxx', alpha=0.4 )\n\nplt.savefig( 'with_hatch.pdf' )\nplt.savefig( 'with_hatch.png' )\n```\n","author":{"url":"https://github.com/jemrobinson","@type":"Person","name":"jemrobinson"},"datePublished":"2014-11-24T20:12:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/3841/matplotlib/issues/3841"}
| 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:abd85df5-b823-399f-64f4-69ed973cb625 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E51E:4DD3F:FF0D8A:1524CF7:6A5334E8 |
| html-safe-nonce | 1b8e17b9484521ab0d44314f18b5e15ccdbb7b4c1784797c0bdea93b8a24bb9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTFFOjRERDNGOkZGMEQ4QToxNTI0Q0Y3OjZBNTMzNEU4IiwidmlzaXRvcl9pZCI6IjE1ODE5MDEyMTIxMjI1NTk3MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a69b8438eea3b1feb0b04ccee68c9f586cb7bdd6447401198e4025eaa0f4d31f |
| hovercard-subject-tag | issue:49936323 |
| 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/3841/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e6d8884dd6babd533f61bbc2ba3906526242d1f96ab814f6ea743e2fbdfd85d/matplotlib/matplotlib/issues/3841 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e6d8884dd6babd533f61bbc2ba3906526242d1f96ab814f6ea743e2fbdfd85d/matplotlib/matplotlib/issues/3841 |
| og:image:alt | I've posted this issue on StackOverflow as: http://stackoverflow.com/questions/27094747/ The basic problem is that transparency information isn't being correctly to PDFs when hatching is used. I'm ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jemrobinson |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width