pick 窗口:拆分键 s -> x(s 是 matplotlib 的保存图像快捷键)
This commit is contained in:
1 parent
6b4e86cebd
commit
5ed1733ccc
2 files changed
+4
-3
No files matched your search
+2
-1
@@ -106,7 +106,8 @@ python peak_finder.py --input $rec --calibration $cal --match line_tables\mercur
|
||||
auto-stretched RAW 预览(缩放到 ROI 区域):橙色框是 ROI,青色竖线是当前峰的传感器列,
|
||||
青圈是它在缝方向的行位置;右下是放大的净信号和拟合曲线。
|
||||
|
||||
点一下切换选中(红色为选中、灰色为未选中、线更粗的是当前聚焦)。`a` 全选、`n` 全不选、
|
||||
点一下切换选中(红色为选中、灰色为未选中、线更粗的是当前聚焦)。`a` 全选、
|
||||
`n` 全不选,`m` 合并选中的几条、`x` 拆开合并线、`u` 撤销合并,
|
||||
`e` 导出并关闭、`q` 取消。见 `pick_window.png`。
|
||||
|
||||
窗口用固定的三块布局(不依赖 constrained_layout),可以随便拉伸;如果窗口比屏幕还大,
|
||||
|
||||
+2
-2
@@ -1172,7 +1172,7 @@ def pick_peaks(spectrum: SpectrumData, lines: list[dict], calibration,
|
||||
chosen = sorted(state["selected"])
|
||||
ax_over.set_title("Selected: " + (", ".join(chosen) if chosen else "none")
|
||||
+ " | hover = preview, click = toggle, a = all, n = none, "
|
||||
"m = merge selected, s = split, u = undo, "
|
||||
"m = merge selected, x = split, u = undo, "
|
||||
"e = export, q = cancel", fontsize=9)
|
||||
ax_raw.clear()
|
||||
ax_zoom.clear()
|
||||
@@ -1227,7 +1227,7 @@ def pick_peaks(spectrum: SpectrumData, lines: list[dict], calibration,
|
||||
state["merges"].pop()
|
||||
rebuild_view()
|
||||
refresh()
|
||||
elif event.key == "s":
|
||||
elif event.key == "x": # 's' is matplotlib's save-figure shortcut
|
||||
focused = {line["id"]: line for line in state["view"]}.get(state["focus"])
|
||||
if focused is not None and focused.get("merged_from"):
|
||||
for group in list(state["merges"]):
|
||||
|
||||
Reference in new issue
Block a user