Welcome to plottable’s documentation!#

Beautiful Tables in Matplotlib#

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

Quick start#


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((10, 5)), columns=["A", "B", "C", "D", "E"]).round(2)
fig, ax = plt.subplots(figsize=(5, 8))
tab = Table(d)


Women’s World Cup Example#

You can access the WWC Example Notebook here


Customizing 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


Contributors are very welcome to this project.

Please take a look at the Contributor Guide


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.

Indices and tables#