Skip to main content

figtreemap

Plot treemaps with figures. Source code, Docs.

Create treemaps with images proportional to the rectangles. This package focuses on getting and colouring phylopic SVGs but any PNG will work too.

🛠️ Installation

pip install figtreemap

🚀 Quick start

import matplotlib.pyplot as plt
import figtreemap

sizes = [30,4,450,700,190,1200,2,50,70,450,60]
names = ["Canis familiaris","Felis catus","Equus ferus","Bos taurus","Panthera leo","Giraffa camelopardalis","Oryctolagus cuniculus","Pan troglodytes","Homo sapiens","Ursus maritimus","Orycteropus afer"]

svgs = [figtreemap.phylopics.get_svg(name) for name in names]
imgs = [figtreemap.image_prep.prep_svg(svg) for svg in svgs]
figtreemap.squarify_images.figtreemap(sizes, imgs)
plt.show()

✨ Features

Python package to plot treemaps with figures.

  • Get phylopic SVG based on species name, if an image is not available the most specific available image for the lineage.
  • Prepare images for plotting with simple SVG editing and convertion to PNG.
  • Plot images in treemaps.

📄 Docs

Docs are hosted here with a step by step guide and API reference.

🐛 Troubleshooting

Please highlight bugs and ask questions as github issues.

🤝 Contributing

Please make requests and suggestions as github issues and if you would like to make an improvement yourself please submit a pull request.

⚖️ Licence

figtreemap is distributed under MIT licence.

Metadata

Release files for figtreemap 0.1.0

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

Source distribution (sdist)

Source distribution for figtreemap 0.1.0
File Size Uploaded Provenance
figtreemap-0.1.0.tar.gz 15.7 kB With provenance Details

Built distribution (wheel)

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

Total release size: 22.2 kB

Release files / figtreemap-0.1.0.tar.gz

Download URL figtreemap-0.1.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7724f3196217d66044f81e7143d7cc7020b9f223c63045c026b93faa9d729429
BLAKE2b-256 checksum
How to use checksums
9e8a01674ad6abd97afe8bde9274e093006a3e882d78054c04f9e5ba5797e558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.

Transparency log

Release files / figtreemap-0.1.0-py3-none-any.whl

Download URL figtreemap-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d575bb32f22e2beea89134928f2e2ade22b63013638d29bc4595032a688ad75
BLAKE2b-256 checksum
How to use checksums
ad3d45d65947a49e494c899779f390f66bd3ad6f331aa16b3c41507e63484f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.

Transparency log

Security for figtreemap 0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for figtreemap-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 12, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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