Title: [WIP/Proof of concept] Fix Collection autolim issue by jklymak · Pull Request #13640 · matplotlib/matplotlib · GitHub
Open Graph Title: [WIP/Proof of concept] Fix Collection autolim issue by jklymak · Pull Request #13640 · matplotlib/matplotlib
X Title: [WIP/Proof of concept] Fix Collection autolim issue by jklymak · Pull Request #13640 · matplotlib/matplotlib
Description: PR Summary A fix like this gets a lot of the issues with auto-lim for scatter by pre-setting the limits that make transData just based on the object's offsets, and then doing the full algorithm. This is really a proof of concept for discussion rather than a full PR.... ping @anntzer @efiring @ImportanceOfBeingErnest #7413 See also: #13593 import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame({'Depth': [0.2, 0.4, 0.4, 0.4, 0.4, 0.4, 0.6, 0.4, 3.2, 2.0], 'DateTimeUTC': [pd.Timestamp('2018-03-28 06:25:08'), pd.Timestamp('2018-03-28 06:25:49'), pd.Timestamp('2018-03-28 06:27:06'), pd.Timestamp('2018-03-28 06:32:11'), pd.Timestamp('2018-03-28 06:32:59'), pd.Timestamp('2018-03-28 06:34:02'), pd.Timestamp('2018-03-28 06:35:38'), pd.Timestamp('2018-03-28 06:37:04'), pd.Timestamp('2018-03-28 06:39:08'), pd.Timestamp('2018-03-28 06:40:52')]}) x = np.asarray(df['DateTimeUTC']) y = np.asarray(df['Depth']) fig, axs = plt.subplots(2, 1) ax = axs[0] #pp = ax.plot(x, y, '.') ax.scatter(x, y, s=25, marker='d') ax.set_title("using scatter") ax = axs[1] ax.plot(x, y) ax.set_title("Using plot") fig.tight_layout() plt.show() Before After PR Checklist Has Pytest style unit tests Code is Flake 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary A fix like this gets a lot of the issues with auto-lim for scatter by pre-setting the limits that make transData just based on the object's offsets, and then doing the full algorithm...
X Description: PR Summary A fix like this gets a lot of the issues with auto-lim for scatter by pre-setting the limits that make transData just based on the object's offsets, and then doing the full algor...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/13640
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:480145c3-3b3d-45b0-7bed-9b0b09804777 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DFBA:2E1701:C4F12C:11BC538:6A54A719 |
| html-safe-nonce | edf3ec454cd252f4ea3b6808bac7c736b53042778769a54c69ddba025fcad5bc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkJBOjJFMTcwMTpDNEYxMkM6MTFCQzUzODo2QTU0QTcxOSIsInZpc2l0b3JfaWQiOiIyODA3NzIyOTU3NTgxMTAwODI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 796fb38a05540b248b6835f31c7fc8432a1bf64915c01a4d750618afff3a5e18 |
| hovercard-subject-tag | pull_request:259666630 |
| 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/13640/files |
| twitter:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| og:image:alt | PR Summary A fix like this gets a lot of the issues with auto-lim for scatter by pre-setting the limits that make transData just based on the object's offsets, and then doing the full algorithm... |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8cfff6384f62259baea531c7f58bc7040f8dd92 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width