Title: Subplots using bad axis limits in 3.2 · Issue #17203 · matplotlib/matplotlib · GitHub
Open Graph Title: Subplots using bad axis limits in 3.2 · Issue #17203 · matplotlib/matplotlib
X Title: Subplots using bad axis limits in 3.2 · Issue #17203 · matplotlib/matplotlib
Description: Bug report Bug summary Subplots are sometimes using bad axis limits depending on the number and layout of subplots. I guess those axis limits are guess from what gets plotted. This happens in 3.2.1 but not in 3.1.2. I looked through the ...
Open Graph Description: Bug report Bug summary Subplots are sometimes using bad axis limits depending on the number and layout of subplots. I guess those axis limits are guess from what gets plotted. This happens in 3.2.1...
X Description: Bug report Bug summary Subplots are sometimes using bad axis limits depending on the number and layout of subplots. I guess those axis limits are guess from what gets plotted. This happens in 3.2.1...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17203
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Subplots using bad axis limits in 3.2","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nSubplots are _sometimes_ using bad axis limits depending on the number and layout of subplots. \r\n\r\nI guess those axis limits are guess from what gets plotted.\r\n\r\nThis happens in 3.2.1 but not in 3.1.2. I looked through the changelogs of 3.2 releases and saw nothing about axis limits. Sorry if I missed it.\r\n\r\n**Code for reproduction**\r\n\r\nHere I plot a point at x=0, y=0:\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfor rows in range(1, 3):\r\n for cols in range(1, 3):\r\n \r\n # skip single plot, no subplot there\r\n if rows == 1 and cols == 1: continue\r\n\r\n fig, axes = plt.subplots(rows, cols)\r\n\r\n for i, ax in enumerate(axes.ravel()):\r\n ax.scatter(x=0, y=0)\r\n \r\n plt.show()\r\n```\r\n\r\n**Actual outcome, in 3.2.1**\r\n\r\n\r\n\r\n\r\n\r\n**Expected Outcome, in 3.1.2**\r\n\r\n\r\n\r\n\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Archlinux\r\n * Matplotlib version: 3.2.1 from Arch repos\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg, module://ipykernel.pylab.backend_inline\r\n * Python version: 3.8.2 from Arch repos\r\n\r\n * Matplotlib 3.1.2 from pip\r\n\r\n","author":{"url":"https://github.com/kannes","@type":"Person","name":"kannes"},"datePublished":"2020-04-21T19:58:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/17203/matplotlib/issues/17203"}
| 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:7088062d-6586-abfe-51eb-bda3cb04d376 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC0A:37AB26:5C1FA2:7F17E7:6A5380F3 |
| html-safe-nonce | d6de0a3feccbcf1889f962faf8233971f77853400baa15ea09486309be9bf58f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzBBOjM3QUIyNjo1QzFGQTI6N0YxN0U3OjZBNTM4MEYzIiwidmlzaXRvcl9pZCI6IjkxNTI1MDY4NTIwNzYxMjY0NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5639f787003215cf9b8977dce098603d31ad0e9d4ea6bc2da6ec7dfff7530c00 |
| hovercard-subject-tag | issue:604247056 |
| 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/17203/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2666b581bc829a8d408bc123cb842d3d291842c65d037870d95f152366821357/matplotlib/matplotlib/issues/17203 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2666b581bc829a8d408bc123cb842d3d291842c65d037870d95f152366821357/matplotlib/matplotlib/issues/17203 |
| og:image:alt | Bug report Bug summary Subplots are sometimes using bad axis limits depending on the number and layout of subplots. I guess those axis limits are guess from what gets plotted. This happens in 3.2.1... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kannes |
| 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