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]"
Metadata
Release files for mpl-speech-bubble 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpl_speech_bubble-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mpl_speech_bubble-0.1.0-py3-none-any.whl |
Release files / mpl_speech_bubble-0.1.0-py3-none-any.whl
| Download URL | mpl_speech_bubble-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0635c865b05918f55edb9af9d6003606fa9bd668e520180a0c338f6415472283
|
|
BLAKE2b-256 checksum How to use checksums |
9a1be9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for mpl-speech-bubble 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.
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.