# Revision history [back]

When you sum a 2d plot with a 3d plot, Sage tries to embed the 2d plot in the 3d space, with the plot3d method. Unfortunately, this is not implemented (yet):

sage: VF.plot3d()
NotImplementedError: 3D plotting not implemented for PlotField defined by a 20 x 20 vector grid


A workaround is to define your vector field in 3d and plot it near the plane $z=0$:

sage: gradf=vector([y/(x-y-1)^2,(1-x)/(x-y-1)^2,0])
sage: z = SR.symbol('z')
sage: show(P+VF)


When you sum a 2d plot with a 3d plot, Sage tries to embed the 2d plot in the 3d space, with the plot3d method. Unfortunately, this is not implemented (yet):

sage: VF.plot3d()
NotImplementedError: 3D plotting not implemented for PlotField defined by a 20 x 20 vector grid


A workaround is to define your vector field in 3d and plot it near the plane $z=0$:

sage: gradf=vector([y/(x-y-1)^2,(1-x)/(x-y-1)^2,0])
sage: z = SR.symbol('z')
sage: show(P+VF)


When you sum a 2d plot with a 3d plot, Sage tries to embed the 2d plot in the 3d space, with the plot3d method. Unfortunately, this is not implemented for plot defined by vector fields (yet):

sage: VF.plot3d()
NotImplementedError: 3D plotting not implemented for PlotField defined by a 20 x 20 vector grid


A workaround is to define your vector field in 3d and plot it near the plane $z=0$:

sage: gradf = vector([y/(x-y-1)^2, (1-x)/(x-y-1)^2, 0])
sage: z = SR.symbol('z')
sage: VF = plot_vector_field3d(gradf, (x,0,1), (y,0,1), (z,0,0.0001), plot_points=10)
sage: show(P+VF)