Title: Surprising/changed axis limit (autoscale) behavior · Issue #17331 · matplotlib/matplotlib · GitHub
Open Graph Title: Surprising/changed axis limit (autoscale) behavior · Issue #17331 · matplotlib/matplotlib
X Title: Surprising/changed axis limit (autoscale) behavior · Issue #17331 · matplotlib/matplotlib
Description: Bug report Bug summary The interaction of setting axis limits and autoscaling changed in 3.2 with little guidance, introducing unexpected behavior that doesn't always make sense. Code for reproduction Here is a plot that looks very diffe...
Open Graph Description: Bug report Bug summary The interaction of setting axis limits and autoscaling changed in 3.2 with little guidance, introducing unexpected behavior that doesn't always make sense. Code for reproduct...
X Description: Bug report Bug summary The interaction of setting axis limits and autoscaling changed in 3.2 with little guidance, introducing unexpected behavior that doesn't always make sense. Code for repro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Surprising/changed axis limit (autoscale) behavior","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nThe interaction of setting axis limits and autoscaling changed in 3.2 with little guidance, introducing unexpected behavior that doesn't always make sense.\r\n\r\n**Code for reproduction**\r\n\r\nHere is a plot that looks very different on 3.1.2 and 3.2.1\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nf, ax = plt.subplots()\r\nx = np.arange(100)\r\ny = np.random.uniform(-.1, .1, 100)\r\nax.scatter(x, y)\r\nassert ax._autoscaleYon\r\nax.set_ylim((-.5, .5), auto=None)\r\n```\r\n\r\n**Actual outcome**\r\n\r\nOn 3.2.1\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nOn 3.1.2\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: macOS\r\n * Matplotlib version: 3.2.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): pylab inline\r\n * Python version: 3.7\r\n\r\n","author":{"url":"https://github.com/mwaskom","@type":"Person","name":"mwaskom"},"datePublished":"2020-05-05T14:02:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/17331/matplotlib/issues/17331"}
| 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:c29bebfa-f3c4-8979-4377-bf9a535c986c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D08C:1A5270:E40A94:134FA6D:6A533426 |
| html-safe-nonce | 125c315d40d7cae2394f215eb9238d93d21b4c9454eed6a770333c606927ba5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDhDOjFBNTI3MDpFNDBBOTQ6MTM0RkE2RDo2QTUzMzQyNiIsInZpc2l0b3JfaWQiOiI1MDEwNTA0NTI4NTYwMzM3OTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 38b7726f103a3e649acc149ae77c346fbb033816425e4faf2e540ea4d0402503 |
| hovercard-subject-tag | issue:612628004 |
| 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/17331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8edf86c469b646ce8444646d34c1f8ada35c3486ebbb7cffff829281656af523/matplotlib/matplotlib/issues/17331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8edf86c469b646ce8444646d34c1f8ada35c3486ebbb7cffff829281656af523/matplotlib/matplotlib/issues/17331 |
| og:image:alt | Bug report Bug summary The interaction of setting axis limits and autoscaling changed in 3.2 with little guidance, introducing unexpected behavior that doesn't always make sense. Code for reproduct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mwaskom |
| 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