Title: FIX: make MaxNLocator only follow visible ticks for order of magnitude by jklymak · Pull Request #12086 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX: make MaxNLocator only follow visible ticks for order of magnitude by jklymak · Pull Request #12086 · matplotlib/matplotlib
X Title: FIX: make MaxNLocator only follow visible ticks for order of magnitude by jklymak · Pull Request #12086 · matplotlib/matplotlib
Description: PR Summary Closes #12072 Order of magnitude for tick formatting in ScalarFormatter was using invisible ticks. This changes to just use visible. Probably obviated by #11004 but won't hurt anything. Before: After Code import matplotlib.pyplot as plt import matplotlib.ticker as ticker sci_nums = [10**9, 8*10**9] plt.rcParams['ytick.labelsize'] = 13 fig, ax = plt.subplots(1, 2) ax[0].scatter(range(len(sci_nums)), sci_nums) ax[1].scatter(range(len(sci_nums)), sci_nums) ax[1].yaxis.set_major_locator(ticker.MaxNLocator(4)) plt.show() 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 Closes #12072 Order of magnitude for tick formatting in ScalarFormatter was using invisible ticks. This changes to just use visible. Probably obviated by #11004 but won't hurt anyth...
X Description: PR Summary Closes #12072 Order of magnitude for tick formatting in ScalarFormatter was using invisible ticks. This changes to just use visible. Probably obviated by #11004 but won't hurt a...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/12086
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f7347927-7c39-cc36-3557-14da44f33c4c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8CE:ED992:100A64D:173F43A:6A58A058 |
| html-safe-nonce | 2674dc44b36a89910ced37ad526bc7ae3443d61ea97057cb440616b224d433d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOENFOkVEOTkyOjEwMEE2NEQ6MTczRjQzQTo2QTU4QTA1OCIsInZpc2l0b3JfaWQiOiI2NjE5Mzc0NDM5ODQ2NDIwNTY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8991d078a581961b4b07e94016fc870d3c7ea27be69e846903f5da2aa24a15f8 |
| hovercard-subject-tag | pull_request:214476767 |
| 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/12086/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 Closes #12072 Order of magnitude for tick formatting in ScalarFormatter was using invisible ticks. This changes to just use visible. Probably obviated by #11004 but won't hurt anyth... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width