mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: make confidence area and regression line opt-in
This is not perfect - the polygon of the confidence area is calculated even if it is not shown. Oh well. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
ff536e98fc
commit
ba259fb1d6
5 changed files with 57 additions and 21 deletions
|
@ -460,6 +460,11 @@ void StatsView::updateFeatures()
|
|||
if (medianMarker)
|
||||
medianMarker->setVisible(state.median);
|
||||
|
||||
if (regressionItem) {
|
||||
regressionItem->setVisible(state.regression || state.confidence);
|
||||
if (state.regression || state.confidence)
|
||||
regressionItem->setFeatures(state.regression, state.confidence);
|
||||
}
|
||||
for (ChartItemPtr<QuartileMarker> &marker: quartileMarkers)
|
||||
marker->setVisible(state.quartiles);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue