Skip to main content

Better looking tables for matplotlib

Project description

Better Looking Universal Matplotlib Engine.

Blume provides a replacement for the matplotlib table module.

Displaying data as tables in matplotlib.

It fixes a number of issues with the existing table and has:

  • more reliable code for automatically setting the font size to make best use of the space available.

  • Padding between text and the cell edges which works better across a range of text sizes.

  • First row of cell data is now row 0 regardless of whether the table has a row header. The row header is row -1.

  • New options to allow cell edge colours to be specified.

To use the new table, just import blume.table and use that to create your tables instead of the matplotlib.table.table.

from blume import table

tab = table(ax, ..)

The first parameter to table should be an matplotlib.axes.

If you are using the pyplot interface, note that calling pyplot.table will use matplotlib.table.table.

Instead import table from blume and use as follows:

from blume.table import table
tab = table(plt.gca(), ...)

Install

Using pip:

pip3 install blume

Examples

The examples folder has a number of demonstrations of what can be done with this table.

Testing

Run tests using:

pytest tests

Image comparison tests

???

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blume-0.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file blume-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: blume-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for blume-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d8e8d93287c20353c4759b7f9146abb2702418a63f99b1c76c737f7a14f148
MD5 c119625d8e81ef2b0e353ec62001a0e9
BLAKE2b-256 469908fcf4f45a99bf0808095a3b54bacc9d94bcaae56a1805da41d7e7bfd311

See more details on using hashes here.

Supported by

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