Skip to content

Commit

Permalink
don't cast None vm(in,ax) to array as that conflicts with a norm argu…
Browse files Browse the repository at this point in the history
…ment (#258)
  • Loading branch information
ianhi committed Dec 13, 2022
1 parent 4f087a4 commit 9d1bb0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions mpl_interactions/generic.py
Expand Up @@ -12,7 +12,6 @@

from .controller import gogogo_controls, prep_scalars
from .helpers import (
callable_else_value,
callable_else_value_no_cast,
create_slider_format_dict,
gogogo_figure,
Expand Down Expand Up @@ -808,8 +807,8 @@ def update(params, indices, cache):
aspect=aspect,
interpolation=interpolation,
alpha=alpha,
vmin=callable_else_value(vmin, params),
vmax=callable_else_value(vmax, params),
vmin=callable_else_value_no_cast(vmin, params),
vmax=callable_else_value_no_cast(vmax, params),
origin=origin,
extent=extent,
filternorm=filternorm,
Expand Down
4 changes: 2 additions & 2 deletions mpl_interactions/pyplot.py
Expand Up @@ -779,8 +779,8 @@ def update(params, indices, cache):
aspect=aspect,
interpolation=interpolation,
alpha=callable_else_value_no_cast(alpha, param_excluder(params, "alpha")),
vmin=callable_else_value(vmin, param_excluder(params, "vmin")),
vmax=callable_else_value(vmax, param_excluder(params, "vmax")),
vmin=callable_else_value_no_cast(vmin, param_excluder(params, "vmin")),
vmax=callable_else_value_no_cast(vmax, param_excluder(params, "vmax")),
origin=origin,
extent=extent,
filternorm=filternorm,
Expand Down

0 comments on commit 9d1bb0c

Please sign in to comment.