Skip to main content

Beautiful tables in matplotlib.

plottable is a Python library for plotting beautifully customized, presentation ready tables in Matplotlib.

To learn about its functionality, have a look at the documentation.

Quickstart

Installation

pip install plottable

A Basic Example

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd

from plottable import Table

d = pd.DataFrame(np.random.random((5, 5)), columns=["A", "B", "C", "D", "E"]).round(2)
fig, ax = plt.subplots(figsize=(6, 5))
tab = Table(d)

plt.show()

Redoing the Reactable 2019 Women's World Cup Predictions Visualization

You can find the notebook here

Styling A Table

There are three main ways to customize a table:

1) By supplying keywords to the Table
2) Providing a ColumnDefinition for each column you want to style
3) Accessing a tables rows or columns

Contributing

Contributors are very welcome to this project.

Please take a look at the Contributor Guide

Credits

plottable is built for the lack of good table packages in the python ecosystem. It draws inspiration from R packages gt and reactable, from blog posts about creating tables in matplotlib Tim Bayer: How to create custom tables and Son of a corner: Beautiful Tables in Matplotlib, a Tutorial and from matplotlibs own table module.

Metadata

Release files for plottable 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plottable 0.1.5
File Size Uploaded
plottable-0.1.5.tar.gz 21.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plottable 0.1.5
File Interpreter ABI Platform
plottable-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 46.4 kB

Release files / plottable-0.1.5.tar.gz

Download URL plottable-0.1.5.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
235d762a31c82129dc5bf74205c103a14b1e4393d0f921cc0231be5de884041d
BLAKE2b-256 checksum
How to use checksums
5a3e15137d0dde8eb6721d2a42b8d45359f37c2fc76dd688903d04c6bdbf43c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / plottable-0.1.5-py3-none-any.whl

Download URL plottable-0.1.5-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c5d1128d90065fc940e5c8445b2603d253909745bb0cee0c9828651b812441c
BLAKE2b-256 checksum
How to use checksums
cacf23ea4b6f9460312604ed67b74e7db3e702fcaefc04743224ef1cdda663f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page