| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Note: I didn't pay much attention to the test, as I think it would be better to change the ScalarMappable class itself, instead of overriding it multiple times. |
Sorry, something went wrong.
Sorry, something went wrong.
If that fixes the problem more places, I'd suggest proposing that instead... As it is, this PR is a little scanty on justification. |
Sorry, something went wrong.
|
Would it be better to fix this at the ScalarMappable level? 🐑 I should read more carefully before posting. |
Sorry, something went wrong.
|
I made the changes, but I'm not sure about the location of the test; there's no test_scalarmappable.py in the tests directory. |
Sorry, something went wrong.
|
I updated the PR summary, hopefully making this a bit easier to understand. |
Sorry, something went wrong.
|
If #18480 goes in, set_array as modified by this PR will have to be further modified to restore the ability to set_array(None). |
Sorry, something went wrong.
|
I'm going to mark as draft until #18480 can be finished but please ping us if that takes too long! |
Sorry, something went wrong.
Rebased, finished the tests and handled this^ |
Sorry, something went wrong.
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
|
@jklymak does this still require comment/discussion (label)? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
imshow allows set_array to pass lists, Collection does not. (Since _ImageBase overrides set_array of ScalarMappable, adding the ability to pass array-like inputs, and copy the input so changing list after calling function doesn't affect the plots)
This PR expands the ScalarMappable class to make a copy of the original input and casting it to arrays.
Fixes #18841
PR Checklist