Skip to main content

Better looking tables for matplotlib

Reason this release was yanked:

had no code, use at least 0.2.2

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

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

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

blume-0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

blume-0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file blume-0.2.tar.gz.

File metadata

  • Download URL: blume-0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5

File hashes

Hashes for blume-0.2.tar.gz
Algorithm Hash digest
SHA256 65c29c7bb24350227bf59655f7fb7a599e1c46a1572bc74470ef056347998632
MD5 a4cb3f8bd335caa6e6c0d75942464b81
BLAKE2b-256 d5ef0531dea255271c347694fc8510a444934269940c88f0c08d3e4711a83aa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blume-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.5

File hashes

Hashes for blume-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e7c45017daa09b551d494df13b5109eb93ad4bb4c7c42421af393acf6392fc
MD5 a5a25d84b0b5f6d6268391d3433bde37
BLAKE2b-256 1c4ecf6a3147cce6fa29b509fa9baac9c31460aff7acc6a93711912c869ef0ac

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