Title: [Doc]: More consistent documentation of margins · Issue #20984 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: More consistent documentation of margins · Issue #20984 · matplotlib/matplotlib
X Title: [Doc]: More consistent documentation of margins · Issue #20984 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html Problem From #20942 (comment): Axes.margins is not quite clear. Suggested improvement Actions: Synchronize with set_xmargin / set_ymargin Bri...
Open Graph Description: Documentation Link https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html Problem From #20942 (comment): Axes.margins is not quite clear. Suggested improvement Actions: Synchr...
X Description: Documentation Link https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html Problem From #20942 (comment): Axes.margins is not quite clear. Suggested improvement Actions: Synchr...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20984
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: More consistent documentation of margins","articleBody":"### Documentation Link\r\n\r\nhttps://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html\r\n\r\n### Problem\r\n\r\nFrom https://github.com/matplotlib/matplotlib/pull/20942#discussion_r698618631:\r\n\r\n`Axes.margins` is not quite clear.\r\n\r\n\r\n\r\n### Suggested improvement\r\n\r\nActions:\r\n\r\n- Synchronize with `set_xmargin` / `set_ymargin`\r\n- Bring in context (link?) with view limits (`set_xlim`, `set_ylim`)\r\n- \u003cs\u003eNote that the view limits are only updated in the next `autoscale_view`. Margins only stall the view.\u003c/s\u003e Not true anymore, accessing lims unstalls them.\r\n- Maybe add explanation docs on how limits are handled.\r\n Include / consolidate the following and cross-link from the API docs:\r\n - https://matplotlib.org/stable/gallery/subplots_axes_and_figures/axes_margins.html\r\n - https://matplotlib.org/stable/users/explain/axes/autoscale.html\r\n\r\n### Matplotlib Version\r\n\r\n3.4.x\r\n\r\n### Matplotlib documentation version\r\n\r\n3.4.x","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2021-09-02T21:44:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/20984/matplotlib/issues/20984"}
| 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:97f05a69-b5e8-2846-5181-7c07a858a896 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCB6:F01E1:2A6C245:3982C8F:6A5486B5 |
| html-safe-nonce | d74047c57afc0e9964cc72403f9cc1e27c59d01bf25c75ea08530ff80e8fbdef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0I2OkYwMUUxOjJBNkMyNDU6Mzk4MkM4Rjo2QTU0ODZCNSIsInZpc2l0b3JfaWQiOiI0MzY2OTA1MTg2Nzg4MzQ1NTI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4b9fbddde84c4a17d87ff65c78268703fb10e2142ffe5dec94dcaa5377279594 |
| hovercard-subject-tag | issue:987191827 |
| 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/20984/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29f5cd09ed52bebdf6eb0c3d916c0c0eba99899ff706af121032b6c6ff72e4fc/matplotlib/matplotlib/issues/20984 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29f5cd09ed52bebdf6eb0c3d916c0c0eba99899ff706af121032b6c6ff72e4fc/matplotlib/matplotlib/issues/20984 |
| og:image:alt | Documentation Link https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.margins.html Problem From #20942 (comment): Axes.margins is not quite clear. Suggested improvement Actions: Synchr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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