Create a table with row explanations, column headers, using matplotlib. Intended usage was a small table containing a custom heatmap.
pip install mpl-table
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. A difference with many plotting libraries is that configuration is done using a config object, rather than having lots of kwargs in the function call. When writing the plot out you'll probably want to use bbox_inches="tight"
with fig.savefig
.
Table with row headers:
Table in subplots (without row or column headers):
Table with no row headers:
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).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4