Skip to main content

Beautifully customized tables with matplotlib

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plottable-0.1.5.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

plottable-0.1.5-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file plottable-0.1.5.tar.gz.

File metadata

  • Download URL: plottable-0.1.5.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for plottable-0.1.5.tar.gz
Algorithm Hash digest
SHA256 235d762a31c82129dc5bf74205c103a14b1e4393d0f921cc0231be5de884041d
MD5 ac38f579d3967580e6ece9862b768866
BLAKE2b-256 5a3e15137d0dde8eb6721d2a42b8d45359f37c2fc76dd688903d04c6bdbf43c7

See more details on using hashes here.

File details

Details for the file plottable-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: plottable-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for plottable-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5c5d1128d90065fc940e5c8445b2603d253909745bb0cee0c9828651b812441c
MD5 d0d710912c8591de7dcb45181d5f88a2
BLAKE2b-256 cacf23ea4b6f9460312604ed67b74e7db3e702fcaefc04743224ef1cdda663f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page