Well Log Plot: Add option to plot depth horizontally.

This commit is contained in:
Kristian Bendiksen
2022-02-07 11:44:20 +01:00
committed by Magne Sjaastad
parent 1488eec855
commit 5c9bf502e7
6 changed files with 96 additions and 18 deletions

View File

@@ -369,7 +369,16 @@ void RimWellLogExtractionCurve::onLoadDataAndUpdate( bool updateParentPlot )
std::vector<double> xPlotValues = curveData()->xPlotValues();
std::vector<double> depthPlotValues = curveData()->depthPlotValues( depthType, displayUnit );
CAF_ASSERT( xPlotValues.size() == depthPlotValues.size() );
m_plotCurve->setSamplesFromXValuesAndYValues( xPlotValues, depthPlotValues, isLogCurve );
if ( wellLogPlot->depthOrientation() == RimDepthTrackPlot::DepthOrientation::HORIZONTAL )
m_plotCurve->setSamplesFromXValuesAndYValues( depthPlotValues,
xPlotValues,
isLogCurve );
else
m_plotCurve->setSamplesFromXValuesAndYValues( xPlotValues,
depthPlotValues,
isLogCurve );
m_plotCurve->setLineSegmentStartStopIndices( curveData()->polylineStartStopIndices() );