High-resolution plotting
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
该 issue 未指明文件、测试或入口点。首先定位绘图和坐标轴标注路径,然后确定高分辨率小数值或替代标注哪一种属于适当的范围。完成的要求是就精度、缩放行为、性能和坐标轴刻度达成一致的设计。
由索引模型根据 Issue 内容生成。
描述
I need to plot some data with a very high-resolution time axis. Think, unix timestamps, but with sub-picosecond resolution. 64-bit floating point does not have sufficient resolution to represent this, as I need more than 72 bits of resolution to get both at least 32 bits for seconds and at least 40 bits for fractional seconds to get down to picoseconds. Currently I am using D128 from fastnum to store the data. It's one thing to plot an overall view of the trace where truncation doesn't really matter, but the problem is what happens when you zoom in to look at a handful of points and they don't get plotted in the right spots due to truncation.
I'm not sure what the "right" way to solve this would be. One option is to support plotting via a high-resolution decimal type (fastnum, rust_decimal, etc.) directly and avoid converting to floating point. This is probably the best option, but I'm not sure about performance and such. Another potential option is to support offsetting the X and/or Y axes, possibly on a per-trace basis, to remove most of the time portion to reclaim some resolution for the fractional part. But this doesn't really solve the problem completely as there would only be ~12 bits of the f64 mantissa left for the time portion. Maybe dynamically changing the offset based on the current zoom level and plot extents would work? Still possibly not a very clean solution.
I'm also not sure the best way to handle the axis markings, seems like what's really needed is some kind of relative labeling where some reference is marked with the full resolution and then the other divisions are marked relative to the reference. Maybe even something more like an oscilloscope display makes sense, where the individual grid lines are not marked at all, but instead you have "reference" and "per division" values displayed somewhere, and the reference lines explicitly marked in a distinctive way.
Does anyone have any thoughts on this? Does it make sense to try to support plotting high-resolution decimal values directly? Does it make sense to have some alternate axis labeling modes that might be better suited for this kind of data? Or is this too specialized?
- 主要语言
- 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 ·