[英]How to plot f(x,y,z) = t with matplotlib
I have some datas that I need to display. 我有一些数据需要显示。
Because I use python, a quick search told me that matplotlib is the best solution. 因为我使用python,所以快速搜索告诉我matplotlib是最好的解决方案。
I looked at the docs, but i can only find information on how to plot a function f(x,y) = t. 我看了看文档,但是我只能找到有关如何绘制函数f(x,y)= t的信息。
My problem is coming when you add a fourth dimension. 当您添加第四个维度时,我的问题就来了。
I have four arrays of data. 我有四个数据数组。 The last dimension can be display with color informations.
最后一个尺寸可以显示颜色信息。
I started doing this : def f(x,y,z): #compute the function return t
我开始这样做:
def f(x,y,z): #compute the function return t
x : np.arange(1,9,1)
y : np.arange(1,9,1)
z : np.arange(1,9,1)
then I create my data structure containing the f(x,y,z) for all x,y,z 然后我为所有x,y,z创建包含f(x,y,z)的数据结构
But then how should I display it ? 但是那我该如何显示呢?
Thanks in advance, 提前致谢,
Victor 胜利者
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.