You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because user functions get called for all kwargs that are registered, including any kwargs that were added as scalars for things like alpha. For example:
deftest_imshow_scalars():
# and by proxy all the scalar handlingdefmask(min_distance):
returnnp.random.randn(10, 10)
fig, ax=plt.subplots()
iplt.imshow(mask, min_distance=(1, 10), alpha=(0, 1))
changes the array for every change of alpha. I'd expect it to not do this - this is also a detriment to performance.
Proposed Solution
Some sort of caching of args and checking them
Multiple calls to add_kwargs that deal with the scalar kwargs
Additional context
The text was updated successfully, but these errors were encountered:
Problem
Because user functions get called for all kwargs that are registered, including any kwargs that were added as scalars for things like
alpha
. For example:changes the array for every change of
alpha
. I'd expect it to not do this - this is also a detriment to performance.Proposed Solution
add_kwargs
that deal with the scalar kwargsAdditional context
The text was updated successfully, but these errors were encountered: