Custom labels on axis
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
首先定位 PlotMemory、Plot API 以及现有的 x_axis_formatter/y_axis_formatter 处理逻辑。确定自定义标签应该公开坐标轴粗细,还是在内部实现,同时保留现有的格式设置。完成标准是能够沿 y 轴放置标签,并保持间距和格式一致。
由索引模型根据 Issue 内容生成。
描述
I wanted to put some labels on top of the y axis (similar to TradingView, see the video), but right now there is no way of getting axis thickness, so I can't make it look pretty.
https://github.com/user-attachments/assets/81480f0f-4b37-4ad5-b489-f47d952583c9
Describe the solution you'd like
Possible solutions:
- Expose
x_axis_thickness/y_axis_thicknessfromPlotMemory, however it will be hard to get the same label formatting that we get fromx_axis_formatter/x_axis_formatter - Implement these labels internally and expose them in
PlotAPI, but I'm not sure that anyone besides me needs them
Additional context
That's what I got with an exposed y_axis_thickness
https://github.com/user-attachments/assets/c6b347a9-6107-40ca-9d44-0d42ee13a856
- 主要语言
- Rust
- 星标
- 494
- 派生
- 110
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
emilk/egui_plot 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 3/5 1-2 天 新手友好度 66/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
claim
难度 2/5 1-3 小时 新手友好度 88/100
Nixitov/Riptide-Native#946 ·
维护者通常 1 天内回复
-
area: ai-assistants documentation help wanted
难度 2/5 1-3 小时 新手友好度 78/100
BetaBots-LLC/latticegate#17 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
storytold/craft-libs#5594 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
LingyunStudio/RustMusic#16 ·