相关疑难解决方法(0)

Python中数组的二维和三维散点直方图

你有什么想法,我怎么能把3个数组bin到直方图.我的阵列看起来像

Temperature = [4,   3,   1,   4,   6,   7,   8,   3,   1]
Radius      = [0,   2,   3,   4,   0,   1,   2,  10,   7]
Density     = [1,  10,   2,  24,   7,  10,  21, 102, 203]
Run Code Online (Sandbox Code Playgroud)

并且1D图应该看起来:

Density

     |           X
10^2-|               X
     |       X
10^1-|   
     |   X
10^0-|
     |___|___|___|___|___   Radius
         0  3.3 6.6  10
Run Code Online (Sandbox Code Playgroud)

二维图应该(定性)看起来像:

Density

     |           2      | |
10^2-|      11249       | |
     |     233          | | Radius
10^1-|    12            | |
     |   1              | |
10^0-|
     |___|___|___|___|___   Temperature
         0   3 …
Run Code Online (Sandbox Code Playgroud)

python numpy matplotlib histogram binning

7
推荐指数
1
解决办法
4062
查看次数

标签 统计

binning ×1

histogram ×1

matplotlib ×1

numpy ×1

python ×1