Skip to content

krassowski/plotnine3d

Repository files navigation

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

About

3D geoms for plotnine (grammar of graphics in Python)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy