
curved-text
thiebes
Draw text along an arbitrary curve in matplotlib, with arc-length positioning and a perpendicular offset.
AI 简介
这是一个为 matplotlib 提供沿任意曲线绘制文字功能的 Python 工具库。它支持按弧长定位文本、垂直偏移控制,并在图形重绘(如缩放、拖拽、尺寸调整)时动态更新文字位置,确保标签始终贴合曲线路径。核心特性包括平滑曲线适配、灵活的锚点(start/center/end)、归一化位置参数(0.0–1.0)及像素级偏移调节。适用于需要直接标注趋势线、拟合曲线或环形/弧形图表的数据可视化场景,避免依赖图例,提升图表信息密度与可读性。
Python
MIT License74
Stars
2
Forks
53
Watchers
1
Issues
Star 增长
今日0
近 7 天0
近 30 天+1
综合评分41.53
默认分支main