Title: Add support for auto scaling in LineCollection by kimmc6008 · Pull Request #29228 · matplotlib/matplotlib · GitHub
Open Graph Title: Add support for auto scaling in LineCollection by kimmc6008 · Pull Request #29228 · matplotlib/matplotlib
X Title: Add support for auto scaling in LineCollection by kimmc6008 · Pull Request #29228 · matplotlib/matplotlib
Description: PR summary This PR is to address #29219, which addresses the missing auto-scaling support for LineCollection objects. The lack of this feature requires users to manually call ax.autoscale() when adding a LineCollection to an Axes. The PR adds the autoscale inside Axes.add_collection() function to ensure that the scaling is done automatically, without having to call ax.autoscale() With the change, the following code: from matplotlib.collections import LineCollection lc = LineCollection([[(x, x ** 2) for x in range(5)]]) ax = plt.gca() ax.add_collection(lc) plt.show() Successfully creates: PR checklist "closes #0000" is in the body of the PR description to https://github.com/matplotlib/matplotlib/issues/29219 new and changed code is tested Plotting related features are demonstrated in an example New Features and API Changes are noted with a directive and release note Documentation complies with general and docstring guidelines
Open Graph Description: PR summary This PR is to address #29219, which addresses the missing auto-scaling support for LineCollection objects. The lack of this feature requires users to manually call ax.autoscale() when ...
X Description: PR summary This PR is to address #29219, which addresses the missing auto-scaling support for LineCollection objects. The lack of this feature requires users to manually call ax.autoscale() when ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/29228
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2ba4ad8b-8559-d05a-89da-a4dbe8a0f49d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9AEE:17F12E:9AF5F:CAB50:6A52BDE0 |
| html-safe-nonce | 1ccf30580f83778471fb718a34b6a00b86c2fdefac99ee1141a06cc9c1c61371 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUVFOjE3RjEyRTo5QUY1RjpDQUI1MDo2QTUyQkRFMCIsInZpc2l0b3JfaWQiOiI1NTE4MjU1Nzc1OTE2MTkwNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39c366882506242b061985038fd3aaf910f1afbd272e7bb7d558cd58bdf112b6 |
| hovercard-subject-tag | pull_request:2215984425 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/matplotlib/matplotlib/pull/29228/files |
| twitter:image | https://avatars.githubusercontent.com/u/68663873?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/68663873?s=400&v=4 |
| og:image:alt | PR summary This PR is to address #29219, which addresses the missing auto-scaling support for LineCollection objects. The lack of this feature requires users to manually call ax.autoscale() when ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| 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