Ask Your Question

Revision history [back]

Each plot3d command produces a graphics object.

Such objects can be added together in Sage.

The following might give the desired output.

import numpy as np

G = Graphics()
x, y = SR.var('x, y') 
A = np.linspace(-1, 1, 10)
s = (RDF.pi() * 2).sqrt()

for a in A:
    z = a + x - exp(-y^2/2) / s
    G += plot3d(z, (x, -1, 1), (y, -1, 1))

G.show()