No project description provided
Project description
mpl-speech-bubble
A proof-of-concept package to draw speech bubble. It is basically MPL's annotation and it merges the arrow patch and bbox patch using skia-pathops. The package is far from complete and only recommended for an advanced MPL user who are well familiar with how annotation works.
from mpl_speech_bubble import annotate_bubble
ann = annotate_bubble(ax, 'speech\nbubble',
xy=(4, 4), xycoords='data',
xytext=(-10, -25), textcoords='offset points',
size=20, color="w",
ha="left", va="top",
bbox=dict(boxstyle="round",
fc="none", ec="w"),
arrowprops=dict(arrowstyle="wedge,tail_width=2.",
patchA=None,
patchB=el,
relpos=(0.5, 0.5),
connectionstyle="arc3,rad=-0.1"))
Check out examples/example.py for full example.
Installation
The package is not available at pip. You can clone the git repository and install from the source.:
pip install .
Development Installation
pip install -e ".[dev]"
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mpl_speech_bubble-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mpl_speech_bubble-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0635c865b05918f55edb9af9d6003606fa9bd668e520180a0c338f6415472283
|
|
| MD5 |
5d750bd3cd43f08bd94f7109c5380836
|
|
| BLAKE2b-256 |
9a1be9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c
|