Title: Idea: unite xlim and set_xlim to same function · Issue #15938 · matplotlib/matplotlib · GitHub
Open Graph Title: Idea: unite xlim and set_xlim to same function · Issue #15938 · matplotlib/matplotlib
X Title: Idea: unite xlim and set_xlim to same function · Issue #15938 · matplotlib/matplotlib
Description: I think it is confusing that the limits are normally set by xlim and in subplots by set_xlim. Would it not be nice to use the same name ax.xlim(0,1) for subplots ? import numpy as np import matplotlib.pyplot as plt plt.figure(1) plt.xlim...
Open Graph Description: I think it is confusing that the limits are normally set by xlim and in subplots by set_xlim. Would it not be nice to use the same name ax.xlim(0,1) for subplots ? import numpy as np import matplot...
X Description: I think it is confusing that the limits are normally set by xlim and in subplots by set_xlim. Would it not be nice to use the same name ax.xlim(0,1) for subplots ? import numpy as np import matplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/15938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Idea: unite xlim and set_xlim to same function","articleBody":"I think it is confusing that the limits are normally set by `xlim` and in subplots by `set_xlim`.\r\nWould it not be nice to use the same name `ax.xlim(0,1)` for subplots ?\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nplt.figure(1)\r\nplt.xlim(0, 1)\r\nplt.plot([1, 2])\r\n\r\nfix, ax = plt.subplots()\r\nax.set_xlim(0, 1) ## why not ax.xlim(0,1) ?\r\nax.plot([1, 2])\r\n```","author":{"url":"https://github.com/kolibril13","@type":"Person","name":"kolibril13"},"datePublished":"2019-12-14T13:13:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/15938/matplotlib/issues/15938"}
| 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:3b3c4983-512a-9ad2-99fb-235b16c4fe2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8050:2BB762:95424E:C9DB18:6A5421BD |
| html-safe-nonce | 81fe0c4cadcbc5d20dae85c953c2a020249583afbec949d2a4a5f1d66845849e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDUwOjJCQjc2Mjo5NTQyNEU6QzlEQjE4OjZBNTQyMUJEIiwidmlzaXRvcl9pZCI6Ijc1OTM3NTIyNjQxNzI2NDI3NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55c1bda71de7f5272910185f87c2bc61f61198a7dfae6b3ab94d4833b35ed888 |
| hovercard-subject-tag | issue:537912216 |
| 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/15938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c835d1a62576c8f74c5de1e17d19b46317bc9498be6600f341bed3860d977465/matplotlib/matplotlib/issues/15938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c835d1a62576c8f74c5de1e17d19b46317bc9498be6600f341bed3860d977465/matplotlib/matplotlib/issues/15938 |
| og:image:alt | I think it is confusing that the limits are normally set by xlim and in subplots by set_xlim. Would it not be nice to use the same name ax.xlim(0,1) for subplots ? import numpy as np import matplot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kolibril13 |
| 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