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
deftest_light_source_masked_shading():
"""Array comparison test for a surface with a masked portion. Ensures that we don't wind up with "fringes" of odd colors around masked regions."""y, x=np.mgrid[-1.2:1.2:8j, -1.2:1.2:8j]
z=10*np.cos(x**2+y**2)
z=np.ma.masked_greater(z, 9.9)
cmap=plt.cm.copperls=mcolors.LightSource(315, 45)
>rgb=ls.shade(z, cmap)
It seems that Numpy 1.17.0 produces a
IndexError: invalid index to scalar variable.
intest_colors.py
(testing failure trace log):FAILED lib/matplotlib/tests/test_colors.py::test_light_source_masked_shading
The text was updated successfully, but these errors were encountered: