Title: Shadow applied to a simple patch does not show · Issue #9377 · matplotlib/matplotlib · GitHub
Open Graph Title: Shadow applied to a simple patch does not show · Issue #9377 · matplotlib/matplotlib
X Title: Shadow applied to a simple patch does not show · Issue #9377 · matplotlib/matplotlib
Description: Bug report Bug summary Adding a shadow to a patch as described in the documentation does nothing. From the documentation it appears as if matplotlib.patches.Shadow accepts a patch object. I am also not clear on the units of the required ...
Open Graph Description: Bug report Bug summary Adding a shadow to a patch as described in the documentation does nothing. From the documentation it appears as if matplotlib.patches.Shadow accepts a patch object. I am also...
X Description: Bug report Bug summary Adding a shadow to a patch as described in the documentation does nothing. From the documentation it appears as if matplotlib.patches.Shadow accepts a patch object. I am also...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/9377
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Shadow applied to a simple patch does not show","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nAdding a shadow to a patch as described in the [documentation](https://matplotlib.org/devdocs/api/_as_gen/matplotlib.patches.Shadow.html) does nothing. From the documentation it appears as if `matplotlib.patches.Shadow` accepts a `patch` object. I am also not clear on the units of the required `ox` and `oy` properties.\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\n\r\nfig, ax = plt.subplots(1, 1, figsize=(5, 5))\r\n\r\nrectangle = mpatches.Rectangle(\r\n xy=(0.25, 0.25),\r\n width=1/2,\r\n height=1/2)\r\n\r\nshadow = mpatches.Shadow(\r\n rectangle,\r\n ox=0.5,\r\n oy=0.5)\r\n\r\nax.add_patch(rectangle)\r\nax.add_patch(shadow)\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nA shadow of the blue rectangle patch nearby.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Manjaro 17.0.5\r\n * Matplotlib version: (2.0.2)\r\n * Matplotlib backend: module://ipykernel.pylab.backend_inline\r\n * Python version: 3.6.2\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\nI installed `matplotlib` via the Arch package repositories at `sudo pacman -S python-matplotlib`.\r\n\r\n**Edit:** added a missing import to make the example self-sufficient. (afvincent)","author":{"url":"https://github.com/clintval","@type":"Person","name":"clintval"},"datePublished":"2017-10-11T23:23:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/9377/matplotlib/issues/9377"}
| 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:177794ab-2722-1103-8633-ae55e59f52fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D928:152AB4:A656DE:E05861:6A5318F1 |
| html-safe-nonce | 8fcbe697047e4e81d0b06724f3ce217bc9e58f898738a95a824bbc8f5c04b149 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTI4OjE1MkFCNDpBNjU2REU6RTA1ODYxOjZBNTMxOEYxIiwidmlzaXRvcl9pZCI6IjU1NzgzNTM5NDg3NDQ2ODU4MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 12bd4b9212ed4ec9303f777b478d854a4a5ed5c4e67046108855dcbe43432a45 |
| hovercard-subject-tag | issue:264766733 |
| 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/9377/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2c54d74be6faa4c203f0ad057b46b78b0c7382b34d8ed09da0700f0bb09eaa9/matplotlib/matplotlib/issues/9377 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2c54d74be6faa4c203f0ad057b46b78b0c7382b34d8ed09da0700f0bb09eaa9/matplotlib/matplotlib/issues/9377 |
| og:image:alt | Bug report Bug summary Adding a shadow to a patch as described in the documentation does nothing. From the documentation it appears as if matplotlib.patches.Shadow accepts a patch object. I am also... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | clintval |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width