Title: Bug with PatchCollection in PDF output by mdboom · Pull Request #1860 · matplotlib/matplotlib · GitHub
Open Graph Title: Bug with PatchCollection in PDF output by mdboom · Pull Request #1860 · matplotlib/matplotlib
X Title: Bug with PatchCollection in PDF output by mdboom · Pull Request #1860 · matplotlib/matplotlib
Description: The following script: import numpy as np np.random.seed(12345) from matplotlib.patches import Circle from matplotlib.collections import PatchCollection import matplotlib.pyplot as plt c = Circle((8, 8), radius=4, facecolor='none', edgecolor='green') print(c.get_fill()) p = PatchCollection([c], match_original=True) fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.imshow(np.random.random((16,16)), interpolation='nearest') ax.patch.set_color('0.5') ax.add_collection(p) fig.savefig('test.pdf') Produces the following figure: so it looks like there is something weird going on - the circle is cutting a hole through the image! This is with the latest dev version, but I think the bug affects 1.2.1 too.
Open Graph Description: The following script: import numpy as np np.random.seed(12345) from matplotlib.patches import Circle from matplotlib.collections import PatchCollection import matplotlib.pyplot as plt c = Circle(...
X Description: The following script: import numpy as np np.random.seed(12345) from matplotlib.patches import Circle from matplotlib.collections import PatchCollection import matplotlib.pyplot as plt c = Circle(...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/1860
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:568c2a38-380a-50fa-b629-bc895f3e79d0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BD70:356616:14C2D03:1C4F2C6:6A546001 |
| html-safe-nonce | f0343f11db28048264084666c27cf666f60000113e3a13f2128ba27c4b565aa6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDcwOjM1NjYxNjoxNEMyRDAzOjFDNEYyQzY6NkE1NDYwMDEiLCJ2aXNpdG9yX2lkIjoiNDMzNjU5NzMzNzc0NzI1MTIwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0ed88001e309edeb01f5759af83b55395b603e9dcffd02fbc9c10f70042a7bb2 |
| hovercard-subject-tag | pull_request:4843785 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/1860/files |
| twitter:image | https://avatars.githubusercontent.com/u/38294?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/38294?s=400&v=4 |
| og:image:alt | The following script: import numpy as np np.random.seed(12345) from matplotlib.patches import Circle from matplotlib.collections import PatchCollection import matplotlib.pyplot as plt c = Circle(... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width