Title: Bug in circle patch plotting when using the same patch for two different figures · Issue #3776 · matplotlib/matplotlib · GitHub
Open Graph Title: Bug in circle patch plotting when using the same patch for two different figures · Issue #3776 · matplotlib/matplotlib
X Title: Bug in circle patch plotting when using the same patch for two different figures · Issue #3776 · matplotlib/matplotlib
Description: The following code: import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle image = np.random.random((10,10)) c = Circle((5., 5.), 3.) fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.imshow(image, inter...
Open Graph Description: The following code: import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle image = np.random.random((10,10)) c = Circle((5., 5.), 3.) fig = plt.figure() ax = fig.a...
X Description: The following code: import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle image = np.random.random((10,10)) c = Circle((5., 5.), 3.) fig = plt.figure() ax = fig.a...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3776
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in circle patch plotting when using the same patch for two different figures","articleBody":"The following code:\n\n```\nimport numpy as np\n\nimport matplotlib.pyplot as plt\nfrom matplotlib.patches import Circle\n\nimage = np.random.random((10,10))\nc = Circle((5., 5.), 3.)\n\nfig = plt.figure()\nax = fig.add_subplot(1,1,1)\nax.imshow(image, interpolation='nearest', vmin=-2., vmax=3.)\nax.add_patch(c)\nfig.savefig('nearest.png')\n\nfig = plt.figure()\nax = fig.add_subplot(1,1,1)\nax.imshow(image, vmin=-2., vmax=3.)\nax.add_patch(c)\nfig.savefig('default.png')\n```\n\nproduces the following two figures:\n\n**nearest.png** [looks correct]\n\n\n\n**default.png** [definitely doesn't look correct]\n\n\n\nThis is with the latest developer version of Matplotlib with Python 3.4.\n\n[cc @cdeil @bsipocz @larrybradley - this is the issue that is causing https://github.com/astropy/photutils/pull/114#issuecomment-48383187]\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2014-11-09T20:52:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/3776/matplotlib/issues/3776"}
| 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:1092ce2d-ce30-6127-9bc5-d110a2ebf770 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C064:288F65:15CC6:1D5DA:6A548C26 |
| html-safe-nonce | ccb9770e6d3f566a334f9b2e3d2ce771b58b3f77cbcac3b701b7a850d1aaa60e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDY0OjI4OEY2NToxNUNDNjoxRDVEQTo2QTU0OEMyNiIsInZpc2l0b3JfaWQiOiI3NDIxMjIwNDMwMDA1MTc3MzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b8058051ce5cdd8fc2ea394ee44b7997b9263110bd9f95d8190cdc55aa8417c3 |
| hovercard-subject-tag | issue:48213241 |
| 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/3776/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e3559088ff8972b5068ae760ea28fc45066c83f958cbb5f9b1743af97cf8243/matplotlib/matplotlib/issues/3776 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e3559088ff8972b5068ae760ea28fc45066c83f958cbb5f9b1743af97cf8243/matplotlib/matplotlib/issues/3776 |
| og:image:alt | The following code: import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle image = np.random.random((10,10)) c = Circle((5., 5.), 3.) fig = plt.figure() ax = fig.a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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 | 03ccb116376fd46e8ba2a4cdc541e35f13f70734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width