Reputation: 196
As the title say, let's assume I have a plane equation:
ax+by+cz=d (e.g. -4x + 5y + 9z = -9)
I want to draw n random points (let's say 500) that belong to that plane. Can somebody help me with that?
I saw that from mpl_toolkits import mplot3d
has the function plot_surface(x,y,z)
but (as it says) it plots the surface equation and this is not what I need.
Any help is really appreciated.
Upvotes: 1
Views: 800
Reputation: 114599
For a plane a simple approach that would work is
c
)x
and y
in this case)z
with (d - ax - by)/c
Upvotes: 1