##示例代码
import numpy as np
from scatter3d.scatter3d import scatter3d
num = 1000
x = np.random.random(500)*num-num/2
y = np.random.random(500)*num-num/2
z = np.random.random(500)*num-num/2
scatter3d.set_data(x, y, z)
# scatter3d.host="127.0.0.1"
# scatter3d.port=80
# scatter3d.start_color = "#ffffff" # 开始渐变色
# scatter3d.end_color = "#ffffff" # 结束渐变色
# scatter3d.autorotation=0.0005 # 自动旋转 数字表示旋转速度, 默认不旋转
scatter3d.run()
然后在浏览器中输入 http://127.0.0.1:80 即可查看3d散点图
Metadata
Release files for scatter3d 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scatter3d-0.3.1.tar.gz | 141.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scatter3d-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 285.7 kB
Release files / scatter3d-0.3.1.tar.gz
| Download URL | scatter3d-0.3.1.tar.gz |
|---|---|
| Size | 141.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6967f983c825501acda8447d66973cd215eee17f97b1f1941f50e210c4d01c6e
|
|
BLAKE2b-256 checksum How to use checksums |
6b05dbfd82cc9061bad26fcdb11c827ac9468855775c52004808af9582e7df4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|
Release files / scatter3d-0.3.1-py3-none-any.whl
| Download URL | scatter3d-0.3.1-py3-none-any.whl |
|---|---|
| Size | 143.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce2fcabd9aa50e2d7266d84590dcb7eebdf937a90989cffa010f32ba3e3e59f5
|
|
BLAKE2b-256 checksum How to use checksums |
c07b184e38901ce831f9a419719a95f2e0314cf01fd6e2cc76f53ae8dbc0ce7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4
|