Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mpl_speech_bubble-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file mpl_speech_bubble-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mpl_speech_bubble-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0635c865b05918f55edb9af9d6003606fa9bd668e520180a0c338f6415472283
MD5 5d750bd3cd43f08bd94f7109c5380836
BLAKE2b-256 9a1be9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page