使用matplotlib轻松绘制漂亮的箭头
项目描述
mpl-arrow
在matplotlib中绘制漂亮箭头的一种更简单的方法
安装
pip安装mpl-arrow
示例用法
import matplotlib.pyplot as plt
from mpl_arrow import arrow, arrow_absolute, vector
fig, ax = plt.subplots()
# x, y, dx, dy
arrow(1, 0, 2, 0.5, label="arrow")
# x, y, x2, y2
arrow_absolute(1, 0.5, 3.5, 2, label="arrow absolute")
# dx, dy
vector(4, 4, label="vector")
# dx, dy, x, y
vector(4, 4, x=0, y=2, label="vector with offset")
plt.legend()
plt.show()
关闭
mpl_arrow-0.1.0.tar.gz的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 6878a2db0c981af20c61c367c9e09478ea94affaca6e57fda255e8de73ac775d |
|
MD5 | cc7acfbbdb672f92dd2c347338b78e5e |
|
BLAKE2b-256 | 0d2a166382e8754dc81377f1cf66d4d5a05fa127dbf34270e7f4f57ae7ba8269 |