refactor: 通道默认不勾选,CSV不加表头保存原始数据
- 所有16个通道复选框默认不勾选 - CSV文件直接写原始数据,不加ch0-ch15表头 - 修复autoRangeY在无可见通道时的逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user