mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1126 Ensure cumulative saturation TOF plot data is only loaded when visible
This commit is contained in:
parent
2c2c82643d
commit
323417364d
@ -187,9 +187,8 @@ void RimTofAccumulatedPhaseFractionsPlot::loadDataAndUpdate()
|
|||||||
{
|
{
|
||||||
updateMdiWindowVisibility();
|
updateMdiWindowVisibility();
|
||||||
|
|
||||||
if (m_tofAccumulatedPhaseFractionsPlotWidget)
|
if (m_tofAccumulatedPhaseFractionsPlotWidget && m_showWindow())
|
||||||
{
|
{
|
||||||
|
|
||||||
RigTofAccumulatedPhaseFractionsCalculator calc(resultCase(), tracerName(), timeStep());
|
RigTofAccumulatedPhaseFractionsCalculator calc(resultCase(), tracerName(), timeStep());
|
||||||
|
|
||||||
const std::vector<double>& xValues = calc.sortedUniqueTOFValues();
|
const std::vector<double>& xValues = calc.sortedUniqueTOFValues();
|
||||||
|
@ -179,6 +179,7 @@ void RiuTofAccumulatedPhaseFractionsPlot::setSamples(std::vector<double> xSample
|
|||||||
maxVal = std::max(val, maxVal);
|
maxVal = std::max(val, maxVal);
|
||||||
}
|
}
|
||||||
setAxisScale(QwtPlot::xBottom, 0, maxVal);
|
setAxisScale(QwtPlot::xBottom, 0, maxVal);
|
||||||
|
updateAxes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user