diff --git a/ApplicationCode/ProjectDataModel/Flow/RimTofAccumulatedPhaseFractionsPlot.cpp b/ApplicationCode/ProjectDataModel/Flow/RimTofAccumulatedPhaseFractionsPlot.cpp index 20d22dc76f..85e68c164b 100644 --- a/ApplicationCode/ProjectDataModel/Flow/RimTofAccumulatedPhaseFractionsPlot.cpp +++ b/ApplicationCode/ProjectDataModel/Flow/RimTofAccumulatedPhaseFractionsPlot.cpp @@ -187,9 +187,8 @@ void RimTofAccumulatedPhaseFractionsPlot::loadDataAndUpdate() { updateMdiWindowVisibility(); - if (m_tofAccumulatedPhaseFractionsPlotWidget) + if (m_tofAccumulatedPhaseFractionsPlotWidget && m_showWindow()) { - RigTofAccumulatedPhaseFractionsCalculator calc(resultCase(), tracerName(), timeStep()); const std::vector& xValues = calc.sortedUniqueTOFValues(); diff --git a/ApplicationCode/UserInterface/RiuTofAccumulatedPhaseFractionsPlot.cpp b/ApplicationCode/UserInterface/RiuTofAccumulatedPhaseFractionsPlot.cpp index 897716c16f..bab06ebfc2 100644 --- a/ApplicationCode/UserInterface/RiuTofAccumulatedPhaseFractionsPlot.cpp +++ b/ApplicationCode/UserInterface/RiuTofAccumulatedPhaseFractionsPlot.cpp @@ -179,6 +179,7 @@ void RiuTofAccumulatedPhaseFractionsPlot::setSamples(std::vector xSample maxVal = std::max(val, maxVal); } setAxisScale(QwtPlot::xBottom, 0, maxVal); + updateAxes(); } }