Add flies to matplotlib plots.
Project description
flyplotlib
flyplotlib is a Python library for adding vector graphics of fruit flies to matplotlib plots.
Installation
To install flyplotlib, simply run the following command:
pip install flyplotlib
Usage
Here's a basic example of how to use flyplotlib to add flies to a matplotlib plot:
import matplotlib.pyplot as plt
from flyplotlib import add_fly
fig, ax = plt.subplots()
add_fly(xy=(0, 0), ax=ax)
add_fly(xy=(2, -0.5), rotation=30, length=2, alpha=0.3, ax=ax)
add_fly(xy=(3.5, 0), rotation=-45, grayscale=True, ax=ax)
ax.set_aspect(1)
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
flyplotlib-0.2.0.tar.gz
(13.4 kB
view hashes)
Built Distribution
flyplotlib-0.2.0-py3-none-any.whl
(13.2 kB
view hashes)
Close
Hashes for flyplotlib-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b12c61b9dadd4defc22a0ab0d7c9fd650b7d1515b42e0fb31c4833139dd97f6 |
|
MD5 | 0bb9a2011081cb1497341d5205ce0f7e |
|
BLAKE2b-256 | 293e437c84bfb4149476278429fd18283cb332a555472b06ecc96fff9909baa0 |