splineplot
A tiny Python package for plotting splines
splineplot is a tiny Python package that uses statsmodels to fit
a spline to 1-dimensional data and plot it, along with a scatter plot.
It can be used on its own, or in conjunction with Seaborn; its interface
is similar to that of regplot.
import seaborn as sns
iris = sns.load_dataset("iris")
g = sns.FacetGrid(
iris,
hue="species",
aspect=1.3,
height=4,
)
g.map(
splineplot,
"sepal_length",
"sepal_width",
alpha=0,
scatter_kws={"s": 3},
)
_ = g.add_legend()
A Note On alpha
The alpha argument to splineplot determines the smoothing penalty
used when the spline is fit to the y data. It's important to consider
overfitting when setting this value; in general a value of 0 with
modest dataset sizes is almost guaranteed to overfit.
Metadata
Release files for splineplot 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| splineplot-0.3.1.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| splineplot-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.5 kB
Release files / splineplot-0.3.1.tar.gz
| Download URL | splineplot-0.3.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053aa5087843dd507b06d9a86c1228818adc436e1f4ac52cee5a216065476157
|
|
BLAKE2b-256 checksum How to use checksums |
d426a4fe15c034bbf1e923737df7fef55aeb464812a28364e96a1bf72d768b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Darwin/22.5.0
|
Release files / splineplot-0.3.1-py3-none-any.whl
| Download URL | splineplot-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a405fb453120218bdbaec9a7dfc1ca9a26835aca62edfdd86c69121667f01d1
|
|
BLAKE2b-256 checksum How to use checksums |
f3653b483c0aa0434ea27d302d4165562095d72eb63dff2ac842185a8c11a0d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Darwin/22.5.0
|