Python Forum

Full Version: 3d Surface where Z is not a function of X and Y
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically the thread title.

So lets say X = date1 date2 and so on and each date has several corresponding values A, B, C. The value of A on date1 is different than the value of A on date2. So Z are the values. How Do i plot This?

All i could find are tutorials where Z is a function but i want Z to be the values that i already have.
Does anybody have a link for me?
Im pretty Sure it cant be done im matplotlib but maybe in plotly?
richterjan Wrote:The value of A on date1 is different than the value of A on date2. So Z are the values.
I don't understand how the surface is defined. Could you be more specific, perhaps with a concrete example?
I'm also unsure exactly what you are looking for, but 3 dimensions and changes over time is vector math.

I use pygame for vectors, but you could use vector3d.

You can also use dictionaries to store your points.
Points = { "point1" : (x, y, z),
           "point2" : (x, y, z)}