mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2659 Ensemble statistics. Add labels to symbols on the statistic curves
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "RimSummaryPlot.h"
|
||||
|
||||
#include "RiuRimQwtPlotCurve.h"
|
||||
#include "RiuLineSegmentQwtPlotCurve.h"
|
||||
|
||||
#include "cafPdmUiComboBoxEditor.h"
|
||||
|
||||
@@ -421,7 +422,7 @@ void RimPlotCurve::updateCurveAppearance()
|
||||
}
|
||||
|
||||
// QwtPlotCurve will take ownership of the symbol
|
||||
symbol = new QwtSymbol(style);
|
||||
symbol = new RiuCurveQwtSymbol(style, m_symbolLabel);
|
||||
|
||||
symbol->setSize(6, 6);
|
||||
symbol->setColor(curveColor);
|
||||
@@ -545,6 +546,14 @@ void RimPlotCurve::setSymbolSkipDinstance(float distance)
|
||||
m_symbolSkipPixelDistance = distance;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotCurve::setSymbolLabel(const QString& label)
|
||||
{
|
||||
m_symbolLabel = label;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user