Title: [Bug]: axes(position = [...]) behavior · Issue #21441 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: axes(position = [...]) behavior · Issue #21441 · matplotlib/matplotlib
X Title: [Bug]: axes(position = [...]) behavior · Issue #21441 · matplotlib/matplotlib
Description: Bug summary when setting axes position with ax = plt.axes(position = [...]) the position data is not being incorporated. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() pos1 = [0.1, 0.1, 0.3, 0.8] pos2 = [0.5, 0....
Open Graph Description: Bug summary when setting axes position with ax = plt.axes(position = [...]) the position data is not being incorporated. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() pos...
X Description: Bug summary when setting axes position with ax = plt.axes(position = [...]) the position data is not being incorporated. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() pos...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21441
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: axes(position = [...]) behavior","articleBody":"### Bug summary\n\nwhen setting axes position with `ax = plt.axes(position = [...])` the position data is not being incorporated.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\n\r\nfig = plt.figure()\r\n\r\npos1 = [0.1, 0.1, 0.3, 0.8]\r\npos2 = [0.5, 0.1, 0.4, 0.6]\r\n\r\nax1 = plt.axes(position = pos1)\r\nax1.plot([0,1], [0, 1], color = 'r', linewidth = 3)\r\n\r\nax2 = plt.axes(position = pos2)\r\nax2.plot([1, 0], [0, 1], color = 'b', linestyle = '--')\n```\n\n\n### Actual outcome\n\nThe two axes completely overlap\r\n\r\n\n\n### Expected outcome\n\nWould expect two separate axes (these were created by adding\r\n`ax1.set_axes(pos1)` and `ax2.set_axes(pos2)`, which should not be necessary)\r\n\r\n\r\n\n\n### Operating system\n\nWindows\n\n### Matplotlib Version\n\n3.4.2\n\n### Matplotlib Backend\n\nQt5Agg\n\n### Python version\n\n3.8.8\n\n### Jupyter version\n\n_No response_\n\n### Other libraries\n\n_No response_\n\n### Installation\n\nconda\n\n### Conda channel\n\n_No response_","author":{"url":"https://github.com/ramzim","@type":"Person","name":"ramzim"},"datePublished":"2021-10-23T13:13:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/21441/matplotlib/issues/21441"}
| 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:22c7a9b3-e741-9c35-9485-ae5a4ada8d59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E21C:2AC66C:C385BE:104646E:6A528719 |
| html-safe-nonce | f47759935c1b3e821c4837f0d6717d1a8eee78905ff78a1cd45fc02598ab8d4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjFDOjJBQzY2QzpDMzg1QkU6MTA0NjQ2RTo2QTUyODcxOSIsInZpc2l0b3JfaWQiOiI4MTIyMTE1MDMwNjQyNzU1MzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | be363a5168aae3ef51aae69bd523e7fb5968f9bed3267a422c09fe9a7db2d1a8 |
| hovercard-subject-tag | issue:1034164906 |
| 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/21441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5f43fe44085d4f8ddff98b7c43b6ebc6ab6ae06fcc0b1b9174c67eb81aca680/matplotlib/matplotlib/issues/21441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5f43fe44085d4f8ddff98b7c43b6ebc6ab6ae06fcc0b1b9174c67eb81aca680/matplotlib/matplotlib/issues/21441 |
| og:image:alt | Bug summary when setting axes position with ax = plt.axes(position = [...]) the position data is not being incorporated. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() pos... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ramzim |
| 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