diff --git a/ApplicationLibCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp b/ApplicationLibCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp index b15dbaf862..84fb67e70f 100644 --- a/ApplicationLibCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp +++ b/ApplicationLibCode/Commands/WellLogCommands/RicNewWellBoreStabilityPlotFeature.cpp @@ -411,16 +411,6 @@ void RicNewWellBoreStabilityPlotFeature::createAnglesTrack( RimWellBoreStability curve->loadDataAndUpdate( false ); - double actualMinValue = minValue, actualMaxValue = maxValue; - curve->xValueRange( &actualMinValue, &actualMaxValue ); - while ( maxValue < actualMaxValue ) - { - maxValue += angleIncrement; - } - while ( minValue > actualMinValue ) - { - minValue -= angleIncrement; - } maxValue = cvf::Math::clamp( maxValue, angleIncrement, 720.0 ); minValue = cvf::Math::clamp( minValue, 0.0, maxValue - 90.0 ); } diff --git a/ApplicationLibCode/Commands/WellLogCommands/RicNewWellLogPlotFeatureImpl.cpp b/ApplicationLibCode/Commands/WellLogCommands/RicNewWellLogPlotFeatureImpl.cpp index 1c62731ea1..e8036affb4 100644 --- a/ApplicationLibCode/Commands/WellLogCommands/RicNewWellLogPlotFeatureImpl.cpp +++ b/ApplicationLibCode/Commands/WellLogCommands/RicNewWellLogPlotFeatureImpl.cpp @@ -72,6 +72,8 @@ RimWellBoreStabilityPlot* QString( "Well Bore Stability Plot %1" ).arg( wellLogPlotCollection()->wellLogPlots().size() ) ); } + wellLogPlotColl->updateConnectedEditors(); + if ( showAfterCreation ) { RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow(); @@ -242,6 +244,7 @@ void RicNewWellLogPlotFeatureImpl::updateAfterCreation( RimDepthTrackPlot* plot { CVF_ASSERT( plot ); plot->loadDataAndUpdate(); + plot->zoomAll(); } //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationLibCode/ProjectDataModel/WellMeasurement/RimWellMeasurementCurve.cpp b/ApplicationLibCode/ProjectDataModel/WellMeasurement/RimWellMeasurementCurve.cpp index 1f969e59fe..adaadc9574 100644 --- a/ApplicationLibCode/ProjectDataModel/WellMeasurement/RimWellMeasurementCurve.cpp +++ b/ApplicationLibCode/ProjectDataModel/WellMeasurement/RimWellMeasurementCurve.cpp @@ -138,7 +138,7 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot ) } } - if ( m_isUsingAutoName ) + if ( m_isUsingAutoName && m_plotCurve ) { m_plotCurve->setTitle( createCurveAutoName() ); } @@ -160,11 +160,14 @@ void RimWellMeasurementCurve::onLoadDataAndUpdate( bool updateParentPlot ) depthType = wellLogPlot->depthType(); } - bool useLogarithmicScale = false; - m_plotCurve->setSamplesFromXValuesAndYValues( this->curveData()->propertyValuesByIntervals(), - this->curveData()->depthValuesByIntervals( depthType, displayUnit ), - useLogarithmicScale ); - m_plotCurve->setLineSegmentStartStopIndices( this->curveData()->polylineStartStopIndices() ); + if ( m_plotCurve ) + { + bool useLogarithmicScale = false; + m_plotCurve->setSamplesFromXValuesAndYValues( this->curveData()->propertyValuesByIntervals(), + this->curveData()->depthValuesByIntervals( depthType, displayUnit ), + useLogarithmicScale ); + m_plotCurve->setLineSegmentStartStopIndices( this->curveData()->polylineStartStopIndices() ); + } } this->RimPlotCurve::updateCurvePresentation( updateParentPlot );