I'm working with a data structure analogus to:
x = [1.6,1.9,2.6,2.8,3.1,3.6,1.4,2.7]
y = [98.2,165.2,174.3,109.5,132.5,162.4,95.3,98.5]
z = [100.2,121.5,173.5,89.9,154.7,127.4,147.2,155.9]
m = [-0.2,-1.4,0.3,3.1,-4.2,-2.6,1.7,-1.9]
Here, x,y,z
are all independently variable and may be represented as m=f(x,y,z)
I'm trying to achieve a 4D surface plot(fitted to a polynomial aiming to generate an equation), with m
representing the color gradient of the 3D surface.
Although a very nice example(representing z=f(x,y)
) is provided: https://stackoverflow.com/a/18648210/97160.
But I'm getting nowhere on how perform such operation with matplotlib in 4D, where m=f(x.y,z)
.
A little help or suggestions regarding this concern would be highly appreciated.