结合flask生成3d散点模型,并在浏览器中浏览
Project description
##示例代码
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散点图
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scatter3d-0.3.1.tar.gz
(141.9 kB
view details)
Built Distribution
scatter3d-0.3.1-py3-none-any.whl
(143.8 kB
view details)
File details
Details for the file scatter3d-0.3.1.tar.gz
.
File metadata
- Download URL: scatter3d-0.3.1.tar.gz
- Upload date:
- Size: 141.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6967f983c825501acda8447d66973cd215eee17f97b1f1941f50e210c4d01c6e |
|
MD5 | 12a3895c41837df28d77c9db36d878a2 |
|
BLAKE2b-256 | 6b05dbfd82cc9061bad26fcdb11c827ac9468855775c52004808af9582e7df4c |
File details
Details for the file scatter3d-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: scatter3d-0.3.1-py3-none-any.whl
- Upload date:
- Size: 143.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2fcabd9aa50e2d7266d84590dcb7eebdf937a90989cffa010f32ba3e3e59f5 |
|
MD5 | 3d5dbf9f3ca7cc447e9cb71df0bfa1d2 |
|
BLAKE2b-256 | c07b184e38901ce831f9a419719a95f2e0314cf01fd6e2cc76f53ae8dbc0ce7c |