Skip to main content

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(), ...)

And lots more

The general theme is how to create generic tools to explore tables of data, visualising the data with matplotlib.

Tools that also help with managing open data.

For small datasets, there is an evolving example of working with simple csv files, stored in a git repository. See blume.examples.ocixx.

Install

From source code

Get the latest code:

git clone http://github.com/swfiua/blume

Instal:

python setup.py install

Using pip:

pip3 install blume

Examples

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

You can run these with python3:

python3 -m blume.example.cpr

Or you can run a folder full of examples by using blume.eggshow.

Requirements

The package will only require an appropriate version of matplotlib.

This is to make it easy for anyone who is only here for the table.

Universal

The U in blume.

This for now is the blume.cpr module.

Testing

Run tests using:

pytest tests

Release files for blume 0.2.5.5

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

Built distribution (wheel)

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

Release files / blume-0.2.5.5-py3-none-any.whl

Download URL blume-0.2.5.5-py3-none-any.whl
Size 88.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eab2f0a776ac8ceff2387231a11efecaf03eaf33002a5a918bccceb6f9e347f
BLAKE2b-256 checksum
How to use checksums
afbf120c5eecb84c1bbf424ca4758f6e47fae97ae318480a6da759fe69a57ada
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

0.2.7

1 release file

0.2.6

1 release file

0.2.5.7

1 release file

0.2.5.6

1 release file

This release

0.2.5.5 This release

1 release file

0.2.5.3

1 release file

0.2.5.1

1 release file

0.2.5

1 release file

0.2.4.4

1 release file

0.2.4.3

1 release file

0.2.4.1

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

0.0.1

1 release file

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