This release is a pre-release and may not be stable for production use.
seabornxt
A few handy extension plots using seaborn API.
To install:
You can install from PyPI as follows:
pip install seabornxt
or you can install it from the GitHub repository:
git clone https://github.com/LeSasse/seabornxt.git
cd seabornxt
pip install .
Use example:
import seaborn as sns
from seabornxt import stripboxplot
def main():
tips = sns.load_dataset("tips")
plot = stripboxplot(data=tips, x="day", y="total_bill", hue="smoker")
fig = plot.get_figure()
fig.savefig("stripboxplot.pdf")
if __name__ == "__main__":
main()
Results in:
Customise box and strip plots:
You can customise the box and strip plots by passing over the
strip_kwargs and box_kwargs dictionaries. The following
example displays data points in the same colour as the box plots:
import seaborn as sns
from seabornxt import stripboxplot
def main():
tips = sns.load_dataset("tips")
plot = stripboxplot(
data=tips,
x="day",
y="total_bill",
hue="smoker",
strip_kwargs={"jitter": True, "alpha": 0.8},
box_kwargs={"boxprops": {"alpha": 0.4}},
)
fig = plot.get_figure()
fig.savefig("stripboxplot_colors.svg")
if __name__ == "__main__":
main()
The reason for this is that if no strip_kwargs are handed over, I set the color
of the points to black for better visibility by default. But if one hands over
strip_kwargs, without explicitly specifying a color, the strip plot goes back
to the seaborn default color/hue. I prefer black as a default as this is most
useful in my use cases.
Another dataset:
import seaborn as sns
from seabornxt import stripboxplot
def main():
penguins = sns.load_dataset("penguins")
plot = stripboxplot(
data=penguins,
x="sex",
y="body_mass_g",
hue="species",
)
fig = plot.get_figure()
fig.savefig("stripboxplot_penguins.svg")
if __name__ == "__main__":
main()
Metadata
Release files for seabornxt 0.0.1.dev15
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 |
|---|---|---|---|---|
| seabornxt-0.0.1.dev15.tar.gz | 51.1 kB | Without provenance | Details for seabornxt-0.0.1.dev15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seabornxt-0.0.1.dev15-py3-none-any.whl | Python 3 | none | any | Details for seabornxt-0.0.1.dev15-py3-none-any.whl |
Total release size: 66.7 kB
Release files / seabornxt-0.0.1.dev15.tar.gz
| Download URL | seabornxt-0.0.1.dev15.tar.gz |
|---|---|
| Size | 51.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eeb2c4fa46f322d07a4ba24b989107f8553769af9a7242d1e0d3df29ca94e53
|
|
BLAKE2b-256 checksum How to use checksums |
8a8e9d52dc83eab52d15360b118f7e32356bcad2cd807ec7ca3415a81e232ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / seabornxt-0.0.1.dev15-py3-none-any.whl
| Download URL | seabornxt-0.0.1.dev15-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20106ff73fa817f133991427873b9da9b1e902e414b9bbffa1a98d6d7a93e3a1
|
|
BLAKE2b-256 checksum How to use checksums |
bb23c858aaa58d04ac5b5c6951d7e006758e1cd77824a7aa1d2097f0b7ca7d6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for seabornxt 0.0.1.dev15
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.