refactor: 通道默认不勾选,CSV不加表头保存原始数据

- 所有16个通道复选框默认不勾选
- CSV文件直接写原始数据,不加ch0-ch15表头
- 修复autoRangeY在无可见通道时的逻辑
This commit is contained in:
iorebuild
2026-04-30 13:26:50 +08:00
parent b6cd730feb
commit eb1bdc95dc
2 changed files with 5 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ PlotWidget::PlotWidget(QWidget *parent)
, m_dirty(true)
{
m_data.resize(16);
m_channelVisible.fill(true, 16);
m_channelVisible.fill(false, 16);
m_colors = defaultColors();
setMouseTracking(true);
@@ -149,6 +149,10 @@ void PlotWidget::autoRangeY()
}
}
if (globalMax < globalMin) {
// 没有可见通道或没有数据
return;
}
if (globalMax - globalMin < 1.0) {
globalMin -= 50;
globalMax += 50;