Hello,

I am trying to plot a vertical plane (say, z is between 0 and 40). The plane needs to have the xy-trace (intersect the xy plane) in the shape of a line with a linear equation. So the equation of the plane is something like Ay+Bx=0. I canâ€™t figure out how to do it using go.Surface. I figured out how to do a horizontal plane, a slanted plane, a weird shaped plane, but not a vertical one.

It seems like I should be able to have:

x=np.linspace(1,5,100)

y=2*x+3

but Iâ€™m not sure what to do with the z. I tried this, among other things:

z=np.ones((len(x), len(y)))

for i in range(np.shape(z)[0]):

for j in range(np.shape(z)[1]):

z[i,j]=i

and:

fig=go.Figure(data=go.Surface(x=x,y=y, z=z))

fig.show()

However, that gives me a slanted plane.

I donâ€™t quite understand how Surface works. How do I plot a vertical plane when z has to be a 2d array, so no matter what I put in there, the resulting plane will be something other than vertical (given both x and y are non-constant)?

Iâ€™ve also tried to omit the z altogether:

fig=go.Figure(data=go.Surface(x=x,y=y))

fig.show()

However, then the figure doesnâ€™t show at all, so I guess thatâ€™s not allowed?

Iâ€™m sure I am missing something here, help would be tremendously appreciated.