Skip to main content

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()
)

surface

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'})
)

scatter

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'
    })
)

voxels

Line

(
    ggplot_3d(data)
    + aes(x='x', y='y', z='z', color='z')
    + geom_line_3d(size=2)
    + theme_minimal()
)

line

Installation

Installation from PyPI:

pip install plotnine3d

Metadata

Release files for plotnine3d 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotnine3d 0.0.6
File Size Uploaded
plotnine3d-0.0.6.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotnine3d 0.0.6
File Interpreter ABI Platform
plotnine3d-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.7 kB

Release files / plotnine3d-0.0.6.tar.gz

Download URL plotnine3d-0.0.6.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
af47dc7eb21c852f81c67a38527954fc3c461ac1a0ddd6f546535075be7ca11f
BLAKE2b-256 checksum
How to use checksums
2be7d114c8d0fd83ade997b26192d43c2b41208906d87477d0661ed0c1759dbd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / plotnine3d-0.0.6-py3-none-any.whl

Download URL plotnine3d-0.0.6-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a125b0366c98246e3ec2020c5a1b0ef3169b8cdf0b7dd6c7a430ceb65bc24756
BLAKE2b-256 checksum
How to use checksums
ef639f9e3a3758548d3ac5b5740ef13ff53a041dd01a3fdddbea2dd3a3e84042
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page