#9549 RFT plotting: Improve visibility for topology curves

- set row span to 2
- adjust default min/max for zoom
- make symbols a bit smaller
This commit is contained in:
Magne Sjaastad 2022-12-14 09:29:17 +01:00
parent 296718fd29
commit 500b4d2922
3 changed files with 16 additions and 3 deletions

View File

@ -212,6 +212,7 @@ void RicNewRftSegmentWellLogPlotFeature::appendTopologyTrack( RimWellLogPlot* pl
auto track = new RimWellLogTrack();
track->setDescription( "Topology" );
track->enablePropertyAxis( false );
track->setRowSpan( RimPlot::TWO );
plot->addPlot( track );

View File

@ -407,7 +407,7 @@ void RimRftTopologyCurve::applyDefaultAppearance()
setLineStyle( RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_NONE );
}
int adjustedSymbolSize = symbolSize() * 1.5;
int adjustedSymbolSize = symbolSize() * 1.2;
setSymbolSize( adjustedSymbolSize );
setSymbol( RiuPlotCurveSymbol::PointSymbolEnum::SYMBOL_ELLIPSE );
}

View File

@ -59,6 +59,7 @@
#include "RimPerforationCollection.h"
#include "RimPerforationInterval.h"
#include "RimProject.h"
#include "RimRftTopologyCurve.h"
#include "RimTools.h"
#include "RimWellAllocationPlot.h"
#include "RimWellBoreStabilityPlot.h"
@ -371,8 +372,9 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
double minValue = HUGE_VAL;
double maxValue = -HUGE_VAL;
size_t visibleCurves = 0u;
for ( auto curve : m_curves )
size_t topologyCurveCount = 0;
size_t visibleCurves = 0u;
for ( const auto& curve : m_curves )
{
double minCurveValue = HUGE_VAL;
double maxCurveValue = -HUGE_VAL;
@ -393,6 +395,16 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
}
}
}
if ( dynamic_cast<RimRftTopologyCurve*>( curve.p() ) ) topologyCurveCount++;
}
if ( topologyCurveCount == m_curves.size() )
{
// The topology track is quite narrow, and to be able to show the curves we add extra space for min/max values
const double range = maxValue - minValue;
maxValue += range * 0.5;
minValue -= range * 0.5;
}
if ( minValue == HUGE_VAL )