Title: DOC: Duplicate examples of AnchoredArtists gallery · Issue #11092 · matplotlib/matplotlib · GitHub
Open Graph Title: DOC: Duplicate examples of AnchoredArtists gallery · Issue #11092 · matplotlib/matplotlib
X Title: DOC: Duplicate examples of AnchoredArtists gallery · Issue #11092 · matplotlib/matplotlib
Description: The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of each other. However, the first one is much ...
Open Graph Description: The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of eac...
X Description: The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of eac...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11092
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DOC: Duplicate examples of AnchoredArtists gallery","articleBody":"The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of each other. However, the first one is much more complete, and demonstrates a much less complicated way of achieving he same thing.\r\n\r\nThe first linked page has a `if 1:` \"guard\" while the second one has `if __name__ == '__main__':`. Given the overall trend in the examples, neither seems necessary.\r\n\r\nAn even simpler example, that is fully covered by the other ones, is given in https://matplotlib.org/gallery/userdemo/anchored_box01.html\r\n\r\nMy personal take on this is:\r\n- Keep the content of https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html. The other version asks the user to write their own version of the anchored artist classes, even though matplotlib already provides them, and is generally less complete.\r\n- Move it to https://matplotlib.org/gallery/misc/anchored_artists.html since it has nothing to do with axis grids and I'm not even sure how it ended up there.\r\n- Removing the unnecessary import guard.\r\n- Remove https://matplotlib.org/gallery/userdemo/anchored_box01.html entirely.\r\n\r\nI'll be happy to submit a PR if a couple of senior folks approve.\r\n\r\nP.S. The reason for all this is in the comment section of https://stackoverflow.com/a/49933937/2988730, when I realized I was giving somebody incomplete, or possibly outright bad advice.","author":{"url":"https://github.com/madphysicist","@type":"Person","name":"madphysicist"},"datePublished":"2018-04-20T15:26:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/11092/matplotlib/issues/11092"}
| 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:8bcc0a88-5f3a-a557-4ef1-3a9d2644006a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D06:3A1626:41AB99:57B212:6A51C42D |
| html-safe-nonce | 456be5c383bea1840eb7f7fd01907fbcdc860e6cdbb8cd454550a1506401675f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDA2OjNBMTYyNjo0MUFCOTk6NTdCMjEyOjZBNTFDNDJEIiwidmlzaXRvcl9pZCI6IjYzNTY4NjkzOTMwODM5MDkxNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5303f0677d3221c967377d6d33b84d31ffb0c40daebc02c968addbdb962c652d |
| hovercard-subject-tag | issue:316311942 |
| 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/11092/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f765185c9ddecb1b79fe336035b8eddac837668fba7861d86202b998a5f1b75a/matplotlib/matplotlib/issues/11092 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f765185c9ddecb1b79fe336035b8eddac837668fba7861d86202b998a5f1b75a/matplotlib/matplotlib/issues/11092 |
| og:image:alt | The documentation pages at https://matplotlib.org/gallery/axes_grid1/simple_anchored_artists.html and https://matplotlib.org/gallery/misc/anchored_artists.html appear to be nearly duplicates of eac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | madphysicist |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width