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
{{ message }}
Repository navigation
_make_norm_from_scale needs to process values #19239
As noted in #18653, norms created via colors._make_norm_from_scale do not process values that are passed to inverse so norm.inverse([0.2, 5, 10]) fails, whereas norm.inverse(np.array([0.2, 5, 10])) works fine.
Traceback (most recent call last):
File "testbadnorm.py", line 6, in <module>
print(norm.inverse([0.5, 0.4]))
File "/Users/jklymak/matplotlib/lib/matplotlib/colors.py", line 1452, in inverse
rescaled = value * (t_vmax - t_vmin)
TypeError: can't multiply sequence by non-int of type 'numpy.float64'
Activity
jklymak commentedon Jan 5, 2021
Test:
The second call fails: