图表换正式数据

This commit is contained in:
2026-09-13 14:38:31 +08:00
parent 705c4c9b6a
commit 9fb15f53f5
28 changed files with 527 additions and 409 deletions
+8 -9
View File
@@ -1,25 +1,22 @@
# docs/figures —— 论文插图
每张图只输出 PNG。数据由 `scripts/build_figure_data.py` 从行为日志、覆盖计划与生产求解器
算好写入 `docs/figures/.data/*.mat`,再由 MATLAB(`scripts/matlab/*.m`)排版出图;
`manifest.json` 记录每张图的数据来源(路径 + sha256 前 12 位 + 行数)与生成命令。
每张图只输出 PNG。正文插图统一由 scripts/plot_paper_figures.py 使用 matplotlib 生成,
数据直接读取 docs/paper/data/formal-results.csv、第四问覆盖计划与论文示例;
manifest.json 记录图片生成命令与来源。
本目录的 11 张 PNG 全部进入论文正文:`docs/paper/main.tex` 用
`\graphicspath{{../figures/}}` 直接引用,不在论文里重绘,也不手抄图内数字。
其中回放画布两张与实测计时一张取自裁判机演练留档,
论文图注均标注「演练、非正式成绩」;问题一的三点交会算例取自演练观测。
```bash
uv run python scripts/build_figure_data.py # 全部 11 张(数据 + 出图)
uv run python scripts/build_figure_data.py --prepare # 只写 .mat 数据
uv run python scripts/build_figure_data.py --list # 图名
uv run python scripts/build_figure_data.py --only geo-q3-seven-point-coverage
python scripts/plot_paper_figures.py # 生成正文全部 matplotlib 插图
python scripts/plot_paper_figures.py --only geo-q3-seven-point-coverage
```
MATLAB 内手动出图:`cd scripts/matlab` 后执行 `run_all_figures`(每张图单独一个会话,
本机图形子系统连续渲染多张会崩)。
依赖:`numpy`、`scipy`(写 `.mat`)与 MATLAB R2025a。
依赖:`numpy` 与 `matplotlib`。
## 约定
@@ -71,3 +68,5 @@ q4 回放固定用演练局 `GHSN-M38E-74GD-YLUD`(`build_figure_data.py::Q4_RE
`examples/q1/triangle.json` 反例算例,图仍可用,只是案例不同。
- 问题一的几何量由生产求解器 `mcm26b.geometry.solve` 现算;
问题三、问题四直接读覆盖计划与证书,不手抄数字。
Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 KiB

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 97 KiB

+3 -3
View File
@@ -1,7 +1,7 @@
{
"generator": "scripts/build_figure_data.py(数据)+ scripts/matlab/*.m(MATLAB 出图)",
"command": "uv run python scripts/build_figure_data.py",
"manual": "MATLAB 中 cd scripts/matlab 后执行 run_all_figures",
"generator": "scripts/plot_paper_figures.py (matplotlib)",
"command": "python scripts/plot_paper_figures.py",
"manual": "Matplotlib PNGs are generated directly; the legacy MATLAB scripts are no longer used by the paper.",
"figures": [
{
"stem": "flow-overall-architecture",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 46 KiB