Matrix legend for Matplotlib
A small extension for Matplotlib's Legend to create matrix legends for plots parametrized with the cartesian product of two grids. Consider the following toy example of evaluating different functions with different "frequency" parameter values. Full enumeration of function+parameter pairs gets cumbersome very quickly, but the same information can be naturally presented in a table layout.
Installation
pip install matplotlib-matrix-legend
Usage
The module exports one public function, a drop-in replacement for Axes.legend
method. Since most of the functionality is inherited directly from the original Legend class,
the styling, layout, custom handles and other features should largely work as expected.
from matrix_legend import matrix_legend
fig, ax = plt.subplots()
# your plotting here
# instead of ax.legend(...)
# see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.legend.html
# for args & kwargs
matrix_legend(ax, ...)
Metadata
Release files for matplotlib-matrix-legend 0.0.3
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 | |
|---|---|---|---|---|
| matplotlib_matrix_legend-0.0.3.tar.gz | 6.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matplotlib_matrix_legend-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / matplotlib_matrix_legend-0.0.3.tar.gz
| Download URL | matplotlib_matrix_legend-0.0.3.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beca63b311a039b2509736f97576e52443370f1ff9cc523953bdd927520ff274
|
|
BLAKE2b-256 checksum How to use checksums |
f51339449d183a78a0bf35ccdd1427ebefe6a8a729d87fb9177befbe4972938e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / matplotlib_matrix_legend-0.0.3-py3-none-any.whl
| Download URL | matplotlib_matrix_legend-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e532c8a8d7adbf60a37c3399313ace4bba1a11db56372f789fe9a61baec3dce
|
|
BLAKE2b-256 checksum How to use checksums |
62652f61e699d5b53820696001293871fe871f6afaf5c1696d03476410bc3002
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for matplotlib-matrix-legend 0.0.3
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.