drawing tools for Demes demographic models
Project description
DemesDraw
demesdraw
is a Python package that contains drawing functions for
Demes
demographic models, using matplotlib
to create the figures.
DemesDraw offers both a command line interface, and a Python API.
Feedback is very welcome.
Installation
Install with pip:
$ python3 -m pip install demesdraw
Or with conda:
$ conda install -c conda-forge demesdraw
Usage
Command line
$ demesdraw tubes --log-time \
examples/stdpopsim/HomSap__AmericanAdmixture_4B11.yaml \
AmericanAdmixture_4B11_tubes.svg
Python API
import demes
import demesdraw
graph = demes.load("examples/stdpopsim/HomSap__AmericanAdmixture_4B11.yaml")
ax = demesdraw.size_history(graph, log_time=True)
ax.figure.savefig("AmericanAdmixture_4B11_size_history.svg")
Documentation
Complete API and CLI details are available in the DemesDraw documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
demesdraw-0.2.0.tar.gz
(136.8 kB
view hashes)
Built Distribution
demesdraw-0.2.0-py3-none-any.whl
(17.4 kB
view hashes)
Close
Hashes for demesdraw-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee8e40559c23c9fc09f657208afa0a9ea8e66238c78e115be7a61e742bf7775 |
|
MD5 | cc2a59849cc3e6271539d6bc681c39f1 |
|
BLAKE2b-256 | fb0db77681b0f5273471560c72a1b1db9d6a59ec52bbc92841479f5c8715987a |