Skip to main content

Python package that allows the use of babyplots visualizations in jupyter notebooks

Project description

babyplots - Easy, fast, interactive 3D visualizations

Babyplots is an easy to use library for creating interactive 3d graphs for exploring and presenting data. This is the python API that allows you to create babyplots visualizations in Jupyter notebooks.

Find the full documentation here.

Install

You can install the babyplots package using pip:

pip install babyplots

Usage

Once imported, you can create a babyplots visualization using the Babyplot class and adding plots to it. To display your visualization, simply call the object:

from babyplots import Babyplot

bp = Babyplot()

bp.add_plot(coordinates, "pointCloud", "categories", clusters, {"colorScale": "Paired"})

bp

Below is a minimal example using the Iris data set:

import numpy as np
from sklearn import decomposition
from sklearn import datasets
from babyplots import Babyplot
np.random.seed(5)

iris = datasets.load_iris()
X = iris.data
y = iris.target

iris = datasets.load_iris()
X = iris.data
y = iris.target

bp_iris = Babyplot(background_color="#262626ff")

bp_iris.add_plot(X, "shapeCloud", "categories", y, {"shape": "sphere", "colorScale": "Set2", "showAxes": [True, True, True], "axisLabels": ["PC 1", "PC 2", "PC 3"]})

bp_iris

You can see this example (and a few more) in a demo notebook here.

Full Documentation

For the complete documentation of babyplots and its python API, please visit https://bp.bleb.li/documentation/python.

Support, Questions, Feedback, ...

Join our Discord server!

Support the work on babyplots

Using babyplots will always be free for everybody. But if you really like it and want to show your appreciation, you may buy us a coffee :)

ko-fi

Also see:

Libraries used in babyplots:

Author

Babyplots was created by Nils Trost

License

Released under the Apache 2.0 License.

Find the licenses of the included libraries here. Make sure to include this file if you use babyplots in your project.

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

babyplots-1.7.0.tar.gz (2.0 MB view hashes)

Uploaded Source

Built Distribution

babyplots-1.7.0-py3-none-any.whl (2.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page