Title: ax.ignore_existing_data_limits is undocumented + view scaling documentation · Issue #18401 · matplotlib/matplotlib · GitHub
Open Graph Title: ax.ignore_existing_data_limits is undocumented + view scaling documentation · Issue #18401 · matplotlib/matplotlib
X Title: ax.ignore_existing_data_limits is undocumented + view scaling documentation · Issue #18401 · matplotlib/matplotlib
Description: Problem This is two fold, first is the initial motivation for this issue and second is the general problem that the first is a microcosm of: 1. Axes objects have a boolean attribute ignore_existing_data_limits that returns no results whe...
Open Graph Description: Problem This is two fold, first is the initial motivation for this issue and second is the general problem that the first is a microcosm of: 1. Axes objects have a boolean attribute ignore_existing...
X Description: Problem This is two fold, first is the initial motivation for this issue and second is the general problem that the first is a microcosm of: 1. Axes objects have a boolean attribute ignore_existing...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18401
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ax.ignore_existing_data_limits is undocumented + view scaling documentation","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Problem\r\nThis is two fold, first is the initial motivation for this issue and second is the general problem that the first is a microcosm of:\r\n\r\n**1.**\r\nAxes objects have a boolean attribute `ignore_existing_data_limits` that returns no results when searched for on the docs: https://matplotlib.org/3.3.1/search.html?q=ignore_existing_data_limits\r\n\r\nThis variable is important for using `relim` and `autoscale_view` when updating the offsets of a scatterplot as can be seen in this SO answer: https://stackoverflow.com/a/51327480/835607. There is also a [comment](https://stackoverflow.com/questions/51323505/how-to-make-relim-and-autoscale-in-a-scatter-plot#comment105454208_51327480) on that answer wondering what the purpose of `ax.ignore_existing_data_limits = True` is.\r\n\r\n**2.**\r\nMore generally, there is not much documentation on how to update the view extent/datalims of an axis after adding artists or collections. What there is can at times be confusing someone (i.e. me) trying to work through how to dynamically update plots. For example, the docstring of `relim` says that it will not work for collections but it's not clear what I should use instead of relim. But I know from pyplot functions such as `hist` and `scatter` it is clear that it is possible to update the datalims to account for collections.\r\n\r\n### Suggested Improvement\r\n\r\nIt would be awesome to have a tutorial dedicated to explaining the interactions between and how to use all of the following:\r\n`relim`\r\n`autoscale`\r\n`autoscale_view`\r\n`datalim`\r\n`xlim/ylim`\r\n`other things I don't know about yet`\r\n\r\nbasically a tutorial that could be used a one stop shop for understanding how to automatically update the view extent of an axis to match any updates that might be applied either via interaction or an animation.","author":{"url":"https://github.com/ianhi","@type":"Person","name":"ianhi"},"datePublished":"2020-09-03T04:19:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/18401/matplotlib/issues/18401"}
| 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:f0ecc164-a8bf-40b6-3e0e-9a480edf623e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCE:D4839:C0DCC8:1038247:6A52A37F |
| html-safe-nonce | e9688595b9f87ebb6d2e16182b53f914c60906d39af3283f65f50f242d4c1af9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NFOkQ0ODM5OkMwRENDODoxMDM4MjQ3OjZBNTJBMzdGIiwidmlzaXRvcl9pZCI6IjU2OTc2MDEyMjAzNDIwOTY3NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6e5ee9011983012a47508c22a42956072b7de34434a805660989c551f587ad60 |
| hovercard-subject-tag | issue:691623525 |
| 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/18401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dba83fdde262cf28bc03aa35f72972e2364bc669f15caee90a1ffc31dcbd84e9/matplotlib/matplotlib/issues/18401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dba83fdde262cf28bc03aa35f72972e2364bc669f15caee90a1ffc31dcbd84e9/matplotlib/matplotlib/issues/18401 |
| og:image:alt | Problem This is two fold, first is the initial motivation for this issue and second is the general problem that the first is a microcosm of: 1. Axes objects have a boolean attribute ignore_existing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ianhi |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width