Bornly
Seaborn-like API for interactive plotly visualisations
Installation
Note: the $ is not part of the command:
$ pip install -U bornly
Examples
Lineplot
import bornly as bns
fmri = bns.load_dataset("fmri")
ax = bns.lineplot(data=fmri, x="timepoint", y="signal", hue="event")
ax.figure
Barplot
import bornly as bns
tips = bns.load_dataset("tips")
ax = bns.barplot(x="day", y="total_bill", data=tips, hue="time")
ax.figure
Scatterplot
import bornly as bns
diamonds = bns.load_dataset("diamonds")
ax = bns.scatterplot(
x="carat",
y="price",
hue="clarity",
size="depth",
palette="ch:r=-.2,d=.3_r",
sizes=(1, 8),
data=diamonds,
)
ax.figure
Kdeplot
import bornly as bns
iris = bns.load_dataset("iris")
ax = bns.kdeplot(data=iris)
ax.figure
from string import ascii_letters
import numpy as np
import pandas as pd
import bornly as bns
import matplotlib.pyplot as plt
# Generate a large random dataset
rs = np.random.RandomState(33)
d = pd.DataFrame(data=rs.normal(size=(100, 26)), columns=list(ascii_letters[26:]))
# Compute the correlation matrix
corr = d.corr()
# Generate a mask for the upper triangle
mask = np.triu(np.ones_like(corr, dtype=bool))
# Generate a custom diverging colormap
cmap = bns.diverging_palette(230, 20, as_cmap=True)
# Draw the heatmap with the mask and correct aspect ratio
ax = bns.heatmap(corr, mask=mask, cmap=cmap, vmax=0.3, center=0)
ax.figure
Pairplot
import bornly as bns
penguins = bns.load_dataset("penguins")
bns.pairplot(penguins, hue="species")
Histplot
import bornly as bns
penguins = bns.load_dataset("penguins")
ax = bns.histplot(data=penguins, x="flipper_length_mm", hue="species")
ax.figure
Metadata
Release files for bornly 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bornly-0.3.0.tar.gz | 7.2 MB | Without provenance | Details for bornly-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bornly-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for bornly-0.3.0-py3-none-any.whl |
Total release size: 7.6 MB
Release files / bornly-0.3.0.tar.gz
| Download URL | bornly-0.3.0.tar.gz |
|---|---|
| Size | 7.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ecdc5626104fcb254e61060148c84b1b8bb0dedb95d036e45b35be76bb717345
|
|
BLAKE2b-256 checksum How to use checksums |
7ab11620deced6cfdc67cca15c4c0572eb4b165e554d2049cb8b564235e0d778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
|
Release files / bornly-0.3.0-py3-none-any.whl
| Download URL | bornly-0.3.0-py3-none-any.whl |
|---|---|
| Size | 319.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79c69e00b52927531b9e5549f0cc9e3a95c127eaa8f0bc09caf7ea7291a49117
|
|
BLAKE2b-256 checksum How to use checksums |
e42908b389ed0d024c247112c18afebe2db98f8367c400e4214529ac8923e8f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
|
Security for bornly 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.