Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I plot 3d plots side by side?

I wanted to plot my function and its partial derivatives side by side on a plot. I tried the following thing but it failed,

f(x,y)=y/(1+x^2*y^2)
pf=plot3d(f,(x,-1,1),(y,-1,1),color='black',opacity=.4)
fx(x,y)=f.diff(x)
fy(x,y)=f.diff(y)
pfx=plot3d(fx,(x,-1,1),(y,-1,1),color='green',opacity=.4)
pfy=plot3d(fy,(x,-1,1),(y,-1,1),color='red',opacity=.4)
L=[pf,pfx]
G=graphics_array(L,1)
G.show(figsize=4)

Thanks.