Title: FIX: Allow deepcopy on norms and scales by jklymak · Pull Request #18126 · matplotlib/matplotlib · GitHub
Open Graph Title: FIX: Allow deepcopy on norms and scales by jklymak · Pull Request #18126 · matplotlib/matplotlib
X Title: FIX: Allow deepcopy on norms and scales by jklymak · Pull Request #18126 · matplotlib/matplotlib
Description: PR Summary Closes #18119 I guess its an API change to change the return type of scale.linear.get_transform? This needs tests but the following now works instead of raising an error. import matplotlib.scale as mscale import copy sc = mscale.LogScale(axis='x', base=10) sc2 = copy.deepcopy(sc) print(sc2) print('deon') import matplotlib.colors as mcolor norm = mcolor.LogNorm() norm.vmin = -10 norm2 = copy.deepcopy(norm) print(norm2, norm2.vmin) norm2.vmin = 3 print(norm2.vmin) import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.plot(np.arange(10)) 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/next_api_changes/* if API changed in a backward-incompatible way
Open Graph Description: PR Summary Closes #18119 I guess its an API change to change the return type of scale.linear.get_transform? This needs tests but the following now works instead of raising an error. import matplotl...
X Description: PR Summary Closes #18119 I guess its an API change to change the return type of scale.linear.get_transform? This needs tests but the following now works instead of raising an error. import matplotl...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/18126
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8eaca863-d3d7-aa00-2083-5698f6d035ca |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B3EA:260F42:1010915:17655BB:6A563318 |
| html-safe-nonce | 6fed64e51d073de5cbe7175f07068b0613effab7655d46fe1e4bc4b3ef847fd0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0VBOjI2MEY0MjoxMDEwOTE1OjE3NjU1QkI6NkE1NjMzMTgiLCJ2aXNpdG9yX2lkIjoiMjQyNDcxNjk2NDAzNzgwMDcyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4465b1ccab87f16c5f802bbf7f06d5f4fa45e0c5f7fdc4eb414545c25ff59e2d |
| hovercard-subject-tag | pull_request:458869994 |
| 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/18126/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 #18119 I guess its an API change to change the return type of scale.linear.get_transform? This needs tests but the following now works instead of raising an error. import matplotl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| 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 | 423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width