简体   繁体   English

3d plot for 3d numpy array in python

[英]3d plot for 3d numpy array in python

I have a numpy array of shape (3,3,7)我有一个形状为 (3,3,7) 的 numpy 数组

array([[[168.1129    , 168.0569    , 168.03823333, 168.0289    ,
     168.0233    , 168.01956667, 168.0169    ],
    [336.1129    , 336.0569    , 336.03823333, 336.0289    ,
     336.0233    , 336.01956667, 336.0169    ],
    [504.1129    , 504.0569    , 504.03823333, 504.0289    ,
     504.0233    , 504.01956667, 504.0169    ]],

   [[168.1129    , 168.0569    , 168.03823333, 168.0289    ,
     168.0233    , 168.01956667, 168.0169    ],
    [319.3129    , 319.2569    , 319.23823333, 319.2289    ,
     319.2233    , 319.21956667, 319.2169    ],
    [470.5129    , 470.4569    , 470.43823333, 470.4289    ,
     470.4233    , 470.41956667, 470.4169    ]],

   [[168.1129    , 168.0569    , 168.03823333, 168.0289    ,
     168.0233    , 168.01956667, 168.0169    ],
    [302.5129    , 302.4569    , 302.43823333, 302.4289    ,
     302.4233    , 302.41956667, 302.4169    ],
    [436.9129    , 436.8569    , 436.83823333, 436.8289    ,
     436.8233    , 436.81956667, 436.8169    ]]])

X-axis range is [0,0.5,1], Y-axis range is [1,2,3], Z-axis range is [2,4,6,8,10,12,14]. X轴范围为[0,0.5,1],Y轴范围为[1,2,3],Z轴范围为[2,4,6,8,10,12,14]。 How to create a 3d plot in python for given axis using 3d array data?如何使用 Z55FAC25C11A99CE497915BFC8030FF 数组在 python 中为给定轴创建 3d plot?

By googling "3D plots python".通过谷歌搜索“3D plots python”。 It will probably tell you to use matplotlib 3D: https://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html It will probably tell you to use matplotlib 3D: https://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM