In SymPy you can automatically plot a surface from an expression, namely
from sympy import symbols
from sympy.plotting import plot3d
x, y = symbols('x y')
monkey_saddle = x**3 - 3*x*y**2
plot3d(monkey_saddle, cmap="RdYlBu")
to get
I could not find any kwarg
that change the colormap. I know that I can create a lambdify
and then directly make the plot using matplotlib. But I am curious if there is a way to do it directly in SymPy.