bornly-0.3.0
توضیحات
Seaborn-like API for some plotly plots
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bornly-0.3.0 |
| نام | bornly |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marco Gorelli |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/MarcoGorelli/bornly |
| آدرس اینترنتی | https://pypi.org/project/bornly/ |
| مجوز | MIT |
<h1 align="center">
Bornly
</h1>
<p align="center">
<img width="458" alt="Screenshot 2021-12-11 at 19 42 47" src="https://user-images.githubusercontent.com/33491632/145689600-9c31dd60-d0c6-430c-b350-7d24d7eef7fc.png">
</p>
<p align="center">
Seaborn-like API for interactive plotly visualisations
</p>
## Installation
Note: the `$` is not part of the command:
```console
$ pip install -U bornly
```
## Examples
### Lineplot
```python
import bornly as bns
fmri = bns.load_dataset("fmri")
ax = bns.lineplot(data=fmri, x="timepoint", y="signal", hue="event")
ax.figure
```

### Barplot
```python
import bornly as bns
tips = bns.load_dataset("tips")
ax = bns.barplot(x="day", y="total_bill", data=tips, hue="time")
ax.figure
```

### Scatterplot
```python
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
```python
import bornly as bns
iris = bns.load_dataset("iris")
ax = bns.kdeplot(data=iris)
ax.figure
```

```python
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
```python
import bornly as bns
penguins = bns.load_dataset("penguins")
bns.pairplot(penguins, hue="species")
```

### Histplot
```python
import bornly as bns
penguins = bns.load_dataset("penguins")
ax = bns.histplot(data=penguins, x="flipper_length_mm", hue="species")
ax.figure
```

نیازمندی
| مقدار | نام |
|---|---|
| - | pandas |
| - | plotly |
| - | matplotlib |
| - | scipy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl bornly-0.3.0:
pip install bornly-0.3.0.whl
نصب پکیج tar.gz bornly-0.3.0:
pip install bornly-0.3.0.tar.gz