I have three lists, X,Y,Z. Each piece of data is associated by index.
X = [1,1,1,1,2,2,2,2,3,3,3,3]
Y = [1,4,5,6,1,4,5,6,1,4,5,6]
Z = [2,6,3,6,2,7,4,6,2,4,2,3]
The X and Y lists only contain 3 or 4 unique values - but each combination of X and Y is unique and has an associated Z value.
I need to produce a surface plot using .plot_surface. I know I need to create a meshgrid for this, but I don't know how to produce this given i have lists containing duplicate data, and maintaining integrity with the Z list is crucial. I could also use tri_surf as this works straight away, but it is not quite what I need.
I'm using the mplot3d library of course.
