Title: Bad xlim/ylim when using shared axes subplots and an empty subplot · Issue #2356 · matplotlib/matplotlib · GitHub
Open Graph Title: Bad xlim/ylim when using shared axes subplots and an empty subplot · Issue #2356 · matplotlib/matplotlib
X Title: Bad xlim/ylim when using shared axes subplots and an empty subplot · Issue #2356 · matplotlib/matplotlib
Description: The following code fig, axes = plt.subplots(nrows=1, ncols=2, sharex=True, sharey=True) axes[0].plot([1,2,3]) print axes[0].get_xlim(), axes[0].get_ylim() plt.show() outputs (-0.059999999999999998, 0.059999999999999998) (-0.0599999999999...
Open Graph Description: The following code fig, axes = plt.subplots(nrows=1, ncols=2, sharex=True, sharey=True) axes[0].plot([1,2,3]) print axes[0].get_xlim(), axes[0].get_ylim() plt.show() outputs (-0.059999999999999998,...
X Description: The following code fig, axes = plt.subplots(nrows=1, ncols=2, sharex=True, sharey=True) axes[0].plot([1,2,3]) print axes[0].get_xlim(), axes[0].get_ylim() plt.show() outputs (-0.059999999999999998,...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2356
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bad xlim/ylim when using shared axes subplots and an empty subplot","articleBody":"The following code\n\n```\nfig, axes = plt.subplots(nrows=1, ncols=2, sharex=True, sharey=True)\naxes[0].plot([1,2,3])\nprint axes[0].get_xlim(), axes[0].get_ylim()\nplt.show()\n```\n\noutputs\n\n```\n(-0.059999999999999998, 0.059999999999999998) (-0.059999999999999998, 0.059999999999999998)\n```\n\nThe axis limits are only updated to sane values once the second axes is populated with something.\n\nIf a subplot with shared axes is empty, I expect the view limits to be set according to the non-empty plots\n","author":{"url":"https://github.com/ChrisBeaumont","@type":"Person","name":"ChrisBeaumont"},"datePublished":"2013-08-30T01:02:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2356/matplotlib/issues/2356"}
| 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:1552259d-15b4-a9a5-296a-0687091360c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D476:781E9:126D730:1AB6E4C:6A54C43C |
| html-safe-nonce | 36d14091f0ec46680345a71281ad2b306940d2da066ef0d94a9828c7bce1b0bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDc2Ojc4MUU5OjEyNkQ3MzA6MUFCNkU0Qzo2QTU0QzQzQyIsInZpc2l0b3JfaWQiOiI3MjQ2ODU0MjI4MTkwNDc5NDIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5fdd24cfcbfe894d80e2654a04ab942bf792570f52b9d898ddd2b2e9597b1d3b |
| hovercard-subject-tag | issue:18766369 |
| 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/2356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25422eef13b91e3cb3e53ab2c963d23b4fa25880404a47552ac608d36e234a28/matplotlib/matplotlib/issues/2356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25422eef13b91e3cb3e53ab2c963d23b4fa25880404a47552ac608d36e234a28/matplotlib/matplotlib/issues/2356 |
| og:image:alt | The following code fig, axes = plt.subplots(nrows=1, ncols=2, sharex=True, sharey=True) axes[0].plot([1,2,3]) print axes[0].get_xlim(), axes[0].get_ylim() plt.show() outputs (-0.059999999999999998,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChrisBeaumont |
| 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 | 69f9664dd5e7a82ba8ab1b4cb7f5a2f09333ab38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width