MPL Table
Create a table with row explanations, column headers, using matplotlib. Intended usage was a small table containing a custom heatmap.
Installation
pip install mpl-table
Usage
Example usage can be found within tests/test_create_table.py, the table is created by
passing dataframes containing text values, cell colour values, and text colour values.
You'll probably want to use bbox_inches="tight" when you fig.savefig.
Example output
Table with row headers:
Table in subplots:
Table with no row headers:
Table with no row or column headers:
Why
Wanted to be able to create tables containing heatmaps, along with row explanations and
different treatment of high/low values for each row. For some rows the formatting of
100% should be considered positive (typically green), whereas others it should be
considered negative (typically
red).
TODO
Simplify creating a table without any row-headers.
Consider makign the spacing for rows/cols dynamic, based on figsize might work.
Usage within subplots, wasn't required for what was needed, but there could be some use in having subplots with these tables.
Different styles - might want to have the header row / row information column without any background colour, or similar stylings. Shouldn't be hard to do from what's here, just hasn't been done.
Metadata
Release files for mpl-table 0.1.6
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 |
|---|---|---|---|---|
| mpl_table-0.1.6.tar.gz | 6.5 kB | Without provenance | Details for mpl_table-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpl_table-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for mpl_table-0.1.6-py3-none-any.whl |
Total release size: 12.9 kB
Release files / mpl_table-0.1.6.tar.gz
| Download URL | mpl_table-0.1.6.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dea25d4f964b7ff768c54cd588cd8f758721a82b30843e1dc30aad392b2b566
|
|
BLAKE2b-256 checksum How to use checksums |
70ace292912aebd7fb993cd6eff5f80c989c7b57a10c5c105ef35cea168e79ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.9 CPython/3.9.5 Darwin/20.6.0
|
Release files / mpl_table-0.1.6-py3-none-any.whl
| Download URL | mpl_table-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed955e5018974bbd8957e8956fd7f0d72fa25671e91a18ad8797be57c17786b0
|
|
BLAKE2b-256 checksum How to use checksums |
1d77241fe184843b03e0bd6a116ce8bdadeafd40e5ecc63aba6c260487b982f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.9 CPython/3.9.5 Darwin/20.6.0
|
Security for mpl-table 0.1.6
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.