Seaborn extension with brightness grouping and interactive annotations
Project description
Matelot: a seaborn extension
Brightness grouping
Matelot provides lineplot and boxplot functions that behave as seaborn lineplot and boxplot functions with an extra brightness argument:
brightness : vector or key in data
- Grouping variable that will produce lines with different brightness.
Example:
matelot.lineplot(
data=df,
x="payload",
y="msg/s",
estimator="median",
hue="branch",
brightness="binary",
)
Annotations
Matelot lineplot function accepts an extra annotate argument:
annotate : bool or literal
- Automatic annotation of lineplot points with their
yvalue.
Example:
matelot.lineplot(
data=df,
x="payload",
y="msg/s",
estimator="median",
annotate=True,
)
Interactive annotations
Matelot lineplot function annotate argument accepts literal value "interactive" that makes annotations only appear on mouseover events.
When using the interactive annotation the matplotlib figure needs to be either:
- turned to an interactive figure through the matelot
interactivefunction. - saved through the matelot
savefigfunction.
Interactive annotations only work with svg output format.
Example:
fig, ax = plt.subplots()
matelot.lineplot(
data=df,
x="payload",
y="msg/s",
marker="o",
estimator="median",
annotate=True,
ax=ax,
)
fig = matelot.interactive(fig)
fig.savefig("lineplot.svg")
Example using implicit interface:
matelot.lineplot(
data=df,
x="payload",
y="msg/s",
estimator="median",
annotate=True,
)
matelot.savefig("lineplot.svg")
Note: to include the svg image in a web page, use an iframe:
<iframe src="lineplot.svg" style="border:none; width:100%; height:100vh;"></iframe>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matelot-0.1.0.tar.gz.
File metadata
- Download URL: matelot-0.1.0.tar.gz
- Upload date:
- Size: 54.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d24631dacfb7630d33c36d3cf7cd69a62b05e5e2ea4e608e530a0aeaf729aaae
|
|
| MD5 |
ca81fabec4678d28dd36a6324d183532
|
|
| BLAKE2b-256 |
e8e7fc2602ff28ded75ac70e333a780cb21b37169ef968db02cbc613385f6d2b
|
File details
Details for the file matelot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: matelot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d08e0f1fcc078b7888b26e0dfa75ad6ac97a4480bc825e489c283c0b459678a
|
|
| MD5 |
5ab4ebbb736b1502291580bea4570b99
|
|
| BLAKE2b-256 |
b38b925cd3bb60bde6049c9b850bc249f85df56a3e6d112832883b12dc89471d
|