Hierarchical subset diagram plotting for Python/Matplotlib
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).
Installation
The simplest way to install the package is via easy_install or pip:
$ easy_install matplotlib-subsets
Dependencies
numpy, scipy, matplotlib.
Usage
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), [])
])
treesets_rectangles(tree)
plt.savefig('example_tree.pdf', bbox_inches='tight')
plt.close()
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
Report issues and submit fixes at Github: https://github.com/JohannesBuchner/matplotlib-subsets
Metadata
Release files for matplotlib-subsets 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matplotlib-subsets-1.0.tar.gz | 3.9 kB | Without provenance | Details for matplotlib-subsets-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplotlib_subsets-1.0-py2.7.egg | Legacy Egg format | - | - | Details for matplotlib_subsets-1.0-py2.7.egg |
Total release size: 10.3 kB
Release files / matplotlib-subsets-1.0.tar.gz
| Download URL | matplotlib-subsets-1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2087c9dd5deea3dfc4051cf1e7e8c9edd86a3995802a3e338c2b463f6793315
|
|
BLAKE2b-256 checksum How to use checksums |
0e9ee7f6d1203eb0990e76d0225efb711512485019ce34c34664dc84eb51837e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / matplotlib_subsets-1.0-py2.7.egg
| Download URL | matplotlib_subsets-1.0-py2.7.egg |
|---|---|
| Size | 6.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
5144b3cda7776a9949d6ab38416e8ca6b53f820c2e68075dc68caf1a9bce85df
|
|
BLAKE2b-256 checksum How to use checksums |
0c31326e23351327ee79c46ec38d608afdee8a2ad05c983e683390633458c95d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for matplotlib-subsets 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.