cmap='colors' returns always blue color
Hello,
I want to plot three functions:
f_1 = x**2 + y**2 + z**2 - a * (sqrt(((x**2 + y**2) / sinh(eta)**2) + z**2 / cosh(eta)**2))
f_2 = x**2 + y**2 + z**2 - a * (sqrt((-(x**2 + y**2) / sin(theta)**2) + z**2 / cos(theta)**2))
f_3 = x * tan(psi) / y
p = implicit_plot3d(f_1, (x, -20, 20), (y, -20, 20), (z, -20, 20), **color='blue'**, opacity=0.9, frame=False)
q = implicit_plot3d(f_2, (x, -20, 20), (y, -20, 20), (z, -20, 20), **color='red'**, opacity=1, frame=False)
r = implicit_plot3d(f_3, (x, -20, 20), (y, -20, 20), (z, -20, 20), **color='green'**, opacity=1, frame=False)
This works, but it doesn't look nice. So, I would like to exchange the color-definitions by cmap in this way:
f_1 = x**2 + y**2 + z**2 - a * (sqrt(((x**2 + y**2) / sinh(eta)**2) + z**2 / cosh(eta)**2))
f_2 = x**2 + y**2 + z**2 - a * (sqrt((-(x**2 + y**2) / sin(theta)**2) + z**2 / cos(theta)**2))
f_3 = x * tan(psi) / y
p = implicit_plot3d(f_1, (x, -20, 20), (y, -20, 20), (z, -20, 20), **cmap='Blues'**, opacity=0.9, frame=False)
q = implicit_plot3d(f_2, (x, -20, 20), (y, -20, 20), (z, -20, 20), **cmap='Reds'**, opacity=1, frame=False)
r = implicit_plot3d(f_3, (x, -20, 20), (y, -20, 20), (z, -20, 20), **cnap='Greens'**, opacity=1, frame=False)
All colors are blue!! I restarted the kernel, no change. I used the online-cell for SageMath: all is blue. Can someone show me how to use cmap correctly in implicit_plot3d?
Thank you very much
give us values of a, theta, eta, psi for testing please
Like this ?
cmap
is not an allowed keyword for implicit plots. Use the syntax in the previous comment (and read the documentation).Here : https://doc.sagemath.org/html/en/refe...