plot op• 数据种类:axes × signal × signal → pairs
• 调用: import fullseye as fs; fs.ledger.data_to_pixel(axes, x, y)(要直接调用实现,import annotate; annotate.data_to_pixel(axes, x, y);从台账取用则 opsannotate.get("data_to_pixel"))
• 经台账调用的返回值: fullseye.ledger.data_to_pixel(...) 只返回声明的 out 类型 pairs 的值(底层函数还会返回辅助信息)。需要被丢弃的部分时,使用 fullseye.ledger.data_to_pixel.raw(...),或直接调用 annotate.data_to_pixel。
用 axes_transform 的映射把数据点映到像素 (x, y)。
不裁剪(clip) —— np.clip(v, lo, hi) 在 lo > hi(反转轴) 时会悄悄返回 hi,得到所有点都贴在边缘的“似是而非的谎言图” (本 repo 的生成器实际上就被骗过一次)。拒绝超出范围的值是 plot_series 的 clip=True 的工作,在那里会作为异常处理。
(ndarray, ndarray)
px, py(float,不舍入 —— 舍入是绘制方的工作)。
ValueError
向 log 轴传入 0 以下的值时(把 -inf 当作“端”来画的图是谎言)。
x 与 y 长度不同时(见下文)。
拒绝长度不一致是 2026-09-02 加上的。链式模糊测试器(fuzzer)刚能执行这个 op 之后, 在传入 2 个长度不同的 signal 的路径上,挖掘器因 np.stack 的原始 ValueError 崩溃,由此暴露。在那之前,即使 x 7 个点、y 3 个点,也不抛异常,把长度不同的 2 个数组原样返回。
危险的不是崩溃,而是不崩溃 —— 把返回的 2 个数组 zip 后, 只有 3 个点被画在 x 的前 3 个位置上。点消失了也好,x 错位了也好,都无法从图上看出来。同族的 plot_series 对同样的情况以 "x and y must have the same length" 拒绝,所以在同一族内纪律出现了分裂(这是只修一边就会再发的类型,所以措辞也统一了)。
• dataset_conventions — 训练数据集规范知识 —— COCO / YOLO / VOC 及外观检测中的陷阱
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者、年份)与用途见上面的族使用指南。
• annotate_gallery — py -3.11 examples/annotate_gallery.py
• poc_beam_modal_video — py -3.11 examples/poc_beam_modal_video.py
• poc_camera_calibration — py -3.11 examples/poc_camera_calibration.py
• poc_crack_width_timeseries — py -3.11 examples/poc_crack_width_timeseries.py
• poc_motion_magnification — py -3.11 examples/poc_motion_magnification.py
• poc_strain_history — py -3.11 examples/poc_strain_history.py
• poc_structure_4d_deterioration — py -3.11 examples/poc_structure_4d_deterioration.py
• poc_superresolution_limits — py -3.11 examples/poc_superresolution_limits.py
• poc_traffic_counting — py -3.11 examples/poc_traffic_counting.py
• poc_wound_area_tracking — py -3.11 examples/poc_wound_area_tracking.py
• poc_xyt_event_surface — py -3.11 examples/poc_xyt_event_surface.py
pairs 作为输入)label_points · annotate_invert_path · filled_polygon
plot)axes_transform · nice_ticks · axes_frame · grid_lines · ticks · plot_series
*Provenance: annotate.py — ANNOTATE 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.