mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add regression curves to ensemble statistics curves
* Add statistics enum * Support ensemble statistics curve as data source for regression curves * Allow creation of regression curves from statistics curves * Make sure regression curves are updated after source curves * Add state to use full or user defined range for regression source data * Add isRegressionCurve * Make sure source stepping works when regression curves are present
This commit is contained in:
@@ -1958,6 +1958,19 @@ void RimSummaryPlot::onLoadDataAndUpdate()
|
||||
curve->loadDataAndUpdate( false );
|
||||
}
|
||||
|
||||
// Load data for regression curves, as they depend on data loaded by curves updated previously in this function
|
||||
if ( m_summaryCurveCollection )
|
||||
{
|
||||
auto curves = m_summaryCurveCollection->curves();
|
||||
for ( auto c : curves )
|
||||
{
|
||||
if ( c->isRegressionCurve() )
|
||||
{
|
||||
c->loadDataAndUpdate( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( plotWidget() )
|
||||
{
|
||||
plotWidget()->setInternalLegendVisible( m_showPlotLegends && !isSubPlot() );
|
||||
|
||||
Reference in New Issue
Block a user