I am fairly new to Python, so I sorry if my question is not as coherent as a fluent python user, but I have searched the web and really haven't found a solution for what I am trying to do. I have a set of experimental data in a csv file that I would like to plot as a 3D surface. It is structured as follows:
x(time)
y(depth) z(temperature readings)
y z(temperature readings)
y z(temperature readings)
y z(temperature readings)
Basically, my top row and my left hand column should function as x,y parts of a depth time array and the z is the temperature reading at each x,y coordinate.
I have tried setting my x and y as arrays and then using meshgrid(x,y) to set up a grid. But my z is values, not an explicit function of x,y. So I can't get it to work. I tried referencing the z using x,y but that didn't seem to work.
I have also tried importing it as a dataframe and playing around with 3D plotting options, but they all seem to require a format of:
x y z
.....
.....
.....
which doesn't help with my dataset. I would appreciate any ideas/suggestions on this! Thanks.