未提供项目描述
项目描述
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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0635c865b05918f55edb9af9d6003606fa9bd668e520180a0c338f6415472283 |
|
MD5 | 5d750bd3cd43f08bd94f7109c5380836 |
|
BLAKE2b-256 | 9a1be9a409db70fcdd6abbe8911c4bb94524ee44015d87a6f04c204b2fb17a6c |