Home > other >  How to draw a 3D grid using matplotlib based on three columns of data?
How to draw a 3D grid using matplotlib based on three columns of data?

Time:09-20

I'm facing a problem with making a 3D plot. I want to build a 3D surface plot like below from three columns of data. Trisurf wireframe

You could also take a look at plot_wireframe(). For that I think you have to start with

x = data["age"].to_list()
y = data["weight"].to_list()
X, Y = np.meshgrid(x, y)

But I'm not sure how to create the z coordinate. It seems you may need interpolation from what I read.

  • Related