'sympy plot3d and Min

I'm brand new to sympy, and what seems like it should be a simple example doesn't work for me. I'm running this in a fresh Google colab.

import sympy
from sympy.plotting import plot3d 

x, y = sympy.symbols('x y') 
expr = sympy.Min(x, y)
print(expr)
expr.subs(x, .2).subs(y, .5)

So far so good. But now when I try to plot this using plot3d, I get an error:

plot3d(expr, (x, -1, 1), (y, -1, 1))

results in TypeError: only integer scalar arrays can be converted to a scalar index. More strangely, when I change the expression to Min(x, x) it plots as expected. What am I missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source