mpl-speech-bubble


Namempl-speech-bubble JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com//mpl-speech-bubble
Summary
upload_time2023-11-30 13:14:02
maintainer
docs_urlNone
authorJae-Joon Lee
requires_python
licenseBSD 3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/fonttools/skia-pathops). The
package is far from complete and only recommended for an advanced MPL user who
are well familiar with how annotation works.

<img src="https://user-images.githubusercontent.com/95962/206708676-6e3cada0-9d37-447b-82cf-4c1c20425b9b.png">

```python
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.:

```bash
pip install .
```

## Development Installation


```bash
pip install -e ".[dev]"
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com//mpl-speech-bubble",
    "name": "mpl-speech-bubble",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jae-Joon Lee",
    "author_email": "lee.j.joon@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "# mpl-speech-bubble\n\nA proof-of-concept package to draw speech bubble. It is basically MPL's\nannotation and it merges the arrow patch and bbox patch using [skia-pathops](https://github.com/fonttools/skia-pathops). The\npackage is far from complete and only recommended for an advanced MPL user who\nare well familiar with how annotation works.\n\n<img src=\"https://user-images.githubusercontent.com/95962/206708676-6e3cada0-9d37-447b-82cf-4c1c20425b9b.png\">\n\n```python\nfrom mpl_speech_bubble import annotate_bubble\n\nann = annotate_bubble(ax, 'speech\\nbubble',\n                      xy=(4, 4), xycoords='data',\n                      xytext=(-10, -25), textcoords='offset points',\n                      size=20, color=\"w\",\n                      ha=\"left\", va=\"top\",\n                      bbox=dict(boxstyle=\"round\",\n                                fc=\"none\", ec=\"w\"),\n                      arrowprops=dict(arrowstyle=\"wedge,tail_width=2.\",\n                                      patchA=None,\n                                      patchB=el,\n                                      relpos=(0.5, 0.5),\n                                      connectionstyle=\"arc3,rad=-0.1\"))\n```\n\nCheck out `examples/example.py` for full example.\n\n## Installation\n\nThe package is not available at pip. You can clone the git repository and\ninstall from the source.:\n\n```bash\npip install .\n```\n\n## Development Installation\n\n\n```bash\npip install -e \".[dev]\"\n```\n\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause",
    "summary": "",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com//mpl-speech-bubble"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a1be9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c",
                "md5": "5d750bd3cd43f08bd94f7109c5380836",
                "sha256": "0635c865b05918f55edb9af9d6003606fa9bd668e520180a0c338f6415472283"
            },
            "downloads": -1,
            "filename": "mpl_speech_bubble-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d750bd3cd43f08bd94f7109c5380836",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8575,
            "upload_time": "2023-11-30T13:14:02",
            "upload_time_iso_8601": "2023-11-30T13:14:02.208059Z",
            "url": "https://files.pythonhosted.org/packages/9a/1b/e9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c/mpl_speech_bubble-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-30 13:14:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mpl-speech-bubble"
}
        
Elapsed time: 0.14758s