Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Functions for plotting area-proportional hierarchical subset diagrams in matplotlib.

Project Description

Routines for plotting area-weighted diagrams of subsets and subsets of subsets. This consistutes an extension to Venn diagrams in some sense (hierarchy), while a limitation in another (subsets only).


The simplest way to install the package is via easy_install or pip:

$ easy_install matplotlib-subsets


  • numpy, scipy, matplotlib.


The package provides the function: treesets_rectangles.

It takes a tree, where each node is defined as ((number-of-items-contained, label, dictionary-of-plotting-attributes), [child nodes…]).

For example:

tree = ((120, '120', None), [
        ((50, 'A50', None), []),
        ((50, 'B50', None), [])

plt.savefig('example_tree.pdf', bbox_inches='tight')

Here, the node ‘120’ is of size 120. It has two subsets, ‘A50’ and ‘B50’, each of size 50. No additional plotting attributes are given (e.g. the color of rectangles is chosen automatically).

See also

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.4 kB) Copy SHA256 Hash SHA256
Egg 2.7 Dec 4, 2013
(3.9 kB) Copy SHA256 Hash SHA256
Source None Dec 4, 2013

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers