跳转到主要内容

未提供项目描述

项目描述

mpl-speech-bubble

一个用于绘制话泡的实验性软件包。它基本上是MPL的注释,并使用skia-pathops合并了箭头补丁和bbox补丁。该软件包远未完成,仅推荐给对注释工作方式非常熟悉的MPL高级用户。

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"))

查看examples/example.py以获取完整示例。

安装

该软件包在pip中不可用。您可以克隆git存储库并从源安装。

pip install .

开发安装

pip install -e ".[dev]"

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于安装软件包的信息。

源分布

此版本没有可用的源分布文件。请参阅生成分发存档的教程

构建分布

mpl_speech_bubble-0.1.0-py3-none-any.whl (8.6 kB 查看哈希值)

上传时间: Python 3

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面