3D geoms for plotnine (grammar of graphics in Python)
Project description
plotnine3d
3D geoms for plotnine (grammar of graphics in Python).
Status: experimental. Please leave feedback; pull requests welcome.
Examples
Please refer to the notebook with examples for more details on data preparation.
Surface
(
ggplot_3d(mt_bruno_long)
+ geom_polygon_3d(size=0.01)
+ aes(x='x', y='y', z='height')
+ theme_minimal()
)
Scatter
(
ggplot_3d(mtcars)
+ aes(
x='hp', y='disp', z='mpg',
shape='transmission',
fill='transmission'
)
+ theme_minimal()
+ scale_shape_manual(values={'automatic': 'o', 'manual': '^'})
+ geom_point_3d(stroke=0.25, size=3, color='black')
+ scale_fill_manual(values={'automatic': 'orange', 'manual': 'blue'})
)
Voxels
(
ggplot_3d(voxels_long)
+ aes(x='x', y='y', z='z', fill='object')
+ geom_voxel_3d(size=0.01)
+ theme_minimal()
+ ylim(0, 8)
+ xlim(0, 8)
+ scale_fill_manual(values={
'link': 'red',
'cube1': 'blue',
'cube2': 'green'
})
)
Line
(
ggplot_3d(data)
+ aes(x='x', y='y', z='z', color='z')
+ geom_line_3d(size=2)
+ theme_minimal()
)
Installation
Installation from PyPI:
pip install plotnine3d
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
plotnine3d-0.0.4.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file plotnine3d-0.0.4.tar.gz
.
File metadata
- Download URL: plotnine3d-0.0.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad5e5441f5da0c53fd0daf9026fbf3c235d3f46df28c1a8174f29da867c471a1 |
|
MD5 | 161afa3ac62eba370a003f84a1bfa86b |
|
BLAKE2b-256 | 7a1ff4f80f3bed911027bb825e7c1ebaa8e295cd082e25c86e400b499beff34f |
File details
Details for the file plotnine3d-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: plotnine3d-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0bd15738d59e384b506683da69d506a86fdfb5f862f95989a1d83ace4f7fa0a |
|
MD5 | f5b03aa250852d018ed2054f657a216d |
|
BLAKE2b-256 | b00f483fdd10a3976167abb0aafc7b40931de68c4fa3f79c8fdc680c06f7d5f9 |