fix plot drawing in case of autoscale and no trace data
This commit is contained in:
parent
8972af3f53
commit
72f2a72445
@ -740,13 +740,17 @@ void TraceXYPlot::updateAxisTicks()
|
||||
min -= range * 0.05;
|
||||
max += range * 0.05;
|
||||
}
|
||||
} else {
|
||||
// max/min still at default values, no valid samples are available for this axis, use default range
|
||||
max = 1.0;
|
||||
min = -1.0;
|
||||
}
|
||||
YAxis[i].rangeMin = min;
|
||||
YAxis[i].rangeMax = max;
|
||||
YAxis[i].rangeDiv = createAutomaticTicks(YAxis[i].ticks, min, max, 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString TraceXYPlot::AxisTypeToName(TraceXYPlot::XAxisType type)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user