#1171 Correct start and end of each cell contribution for pseudo-length based plot.

This commit is contained in:
Jacob Støren
2017-02-27 16:46:34 +01:00
parent b58de820b8
commit 9e73fadada
2 changed files with 31 additions and 11 deletions

View File

@@ -118,8 +118,17 @@ void RimWellFlowRateCurve::onLoadDataAndUpdate()
void RimWellFlowRateCurve::updateCurveAppearance()
{
RimWellLogCurve::updateCurveAppearance();
m_qwtPlotCurve->setStyle(QwtPlotCurve::Steps);
// Use step-type curves if using connection numbers
{
RimWellLogPlot* wellLogPlot;
firstAncestorOrThisOfType(wellLogPlot);
if ( wellLogPlot && wellLogPlot->depthType() == RimWellLogPlot::CONNECTION_NUMBER )
{
m_qwtPlotCurve->setStyle(QwtPlotCurve::Steps);
}
}
QColor curveQColor = QColor (m_curveColor.value().rByte(), m_curveColor.value().gByte(), m_curveColor.value().bByte());
m_qwtPlotCurve->setBrush(QBrush( curveQColor));