Ask Your Question

daviddglmath's profile - activity

2021-01-19 16:01:50 +0200 received badge  Popular Question (source)
2018-04-11 11:29:00 +0200 received badge  Student (source)
2018-04-11 11:07:29 +0200 commented question How to plot implicit3d plot with level sets in SageMath?

I could not upload any image since i dont have enough karma for that. Sorry

2018-04-11 11:07:29 +0200 asked a question How to plot implicit3d plot with level sets in SageMath?

I want to plot a quadratic form with its level sets in SageMath. How to do that?

plot = Graphics()
plot+=plot3d(1/4*x^2+1/9*y^2,(x,-2,2),(y,-2,2))
for h in [0..5]:
    plot+=contour_plot(f,(x,-4,4),(y,-4,4), fill=false, labels=true, contours=10,colorbar=true,cmap=matplotlib.cm.gist_rainbow).show(aspect_ratio=1)    
show(plot)

How to achieve this?