mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3165 Plot source stepping. Reset error bars when stepping through vectors
This commit is contained in:
parent
60146be146
commit
93af11f934
@ -200,6 +200,11 @@ RifEclipseSummaryAddress RimSummaryCurve::summaryAddressY() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryCurve::setSummaryAddressY(const RifEclipseSummaryAddress& address)
|
||||
{
|
||||
if (m_yValuesCurveVariable->address() != address)
|
||||
{
|
||||
m_qwtPlotCurve->clearErrorBars();
|
||||
}
|
||||
|
||||
m_yValuesCurveVariable->setAddress(address);
|
||||
|
||||
m_yValuesSummaryFilter->updateFromAddress(address);
|
||||
|
@ -286,6 +286,14 @@ void RiuLineSegmentQwtPlotCurve::detach()
|
||||
m_attachedToPlot = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuLineSegmentQwtPlotCurve::clearErrorBars()
|
||||
{
|
||||
m_errorBars->setSamples(nullptr);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -79,6 +79,7 @@ public:
|
||||
|
||||
void attach(QwtPlot *plot);
|
||||
void detach();
|
||||
void clearErrorBars();
|
||||
void showErrorBars(bool show);
|
||||
void setErrorBarsColor(QColor color);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user