mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Logarithmic curve support and renaming (#8546)
* Add test for both positive and negative numbers * Remove redundant sample count from parameter list * Propagate useLogarithmicScale * Renaming
This commit is contained in:
@@ -481,7 +481,7 @@ void RimWellAllocationPlot::updateWellFlowPlotXAxisTitle( RimWellLogTrack* plotT
|
||||
: RimWellLogFile::WELL_FLOW_COND_STANDARD;
|
||||
|
||||
QString axisTitle = RimWellPlotTools::flowPlotAxisTitle( condition, unitSet );
|
||||
plotTrack->setXAxisTitle( axisTitle );
|
||||
plotTrack->setPropertyValueAxisTitle( axisTitle );
|
||||
|
||||
#if 0
|
||||
if (m_flowDiagSolution)
|
||||
|
||||
@@ -127,7 +127,7 @@ RiuPlotWidget* RimWellDistributionPlot::plotWidget()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellDistributionPlot::setAutoScaleXEnabled( bool /*enabled*/ )
|
||||
void RimWellDistributionPlot::setAutoScalePropertyValuesEnabled( bool /*enabled*/ )
|
||||
{
|
||||
// cvf::Trace::show("RimWellDistributionPlot::setAutoScaleXEnabled()");
|
||||
}
|
||||
@@ -135,7 +135,7 @@ void RimWellDistributionPlot::setAutoScaleXEnabled( bool /*enabled*/ )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellDistributionPlot::setAutoScaleYEnabled( bool /*enabled*/ )
|
||||
void RimWellDistributionPlot::setAutoScaleDepthValuesEnabled( bool /*enabled*/ )
|
||||
{
|
||||
// cvf::Trace::show("RimWellDistributionPlot::setAutoScaleYEnabled()");
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ public:
|
||||
|
||||
// RimPlot implementations
|
||||
RiuPlotWidget* plotWidget() override;
|
||||
void setAutoScaleXEnabled( bool enabled ) override;
|
||||
void setAutoScaleYEnabled( bool enabled ) override;
|
||||
void setAutoScalePropertyValuesEnabled( bool enabled ) override;
|
||||
void setAutoScaleDepthValuesEnabled( bool enabled ) override;
|
||||
void updateAxes() override;
|
||||
void updateLegend() override;
|
||||
void updateZoomInParentPlot() override;
|
||||
|
||||
@@ -300,7 +300,14 @@ void RimWellFlowRateCurve::setFlowValuesPrDepthValue( const QString&
|
||||
const std::vector<double>& depthValues,
|
||||
const std::vector<double>& flowRates )
|
||||
{
|
||||
this->setValuesAndDepths( flowRates, depthValues, depthType, 0.0, RiaDefines::DepthUnitType::UNIT_NONE, false );
|
||||
bool useLogarithmicScale = false;
|
||||
this->setPropertyValuesAndDepths( flowRates,
|
||||
depthValues,
|
||||
depthType,
|
||||
0.0,
|
||||
RiaDefines::DepthUnitType::UNIT_NONE,
|
||||
false,
|
||||
useLogarithmicScale );
|
||||
|
||||
m_curveAutoName = curveName;
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ void RimWellPltPlot::setPlotXAxisTitles( RimWellLogTrack* plotTrack )
|
||||
if ( m_useStandardConditionCurves )
|
||||
axisTitle += RimWellPlotTools::flowPlotAxisTitle( RimWellLogFile::WELL_FLOW_COND_STANDARD, unitSet );
|
||||
|
||||
plotTrack->setXAxisTitle( axisTitle );
|
||||
plotTrack->setPropertyValueAxisTitle( axisTitle );
|
||||
|
||||
#if 0
|
||||
QString unitText;
|
||||
@@ -685,7 +685,7 @@ void RimWellPltPlot::syncCurvesFromUiSelection()
|
||||
curveGroupId++;
|
||||
}
|
||||
|
||||
plotTrack->setAutoScaleXEnabled( true );
|
||||
plotTrack->setAutoScalePropertyValuesEnabled( true );
|
||||
RimWellLogPlot::onLoadDataAndUpdate();
|
||||
}
|
||||
|
||||
@@ -918,7 +918,7 @@ void RimWellPltPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
RimWellLogTrack* const plotTrack = dynamic_cast<RimWellLogTrack*>( plotByIndex( 0 ) );
|
||||
if ( plotTrack )
|
||||
{
|
||||
plotTrack->setAutoScaleXEnabled( true );
|
||||
plotTrack->setAutoScalePropertyValuesEnabled( true );
|
||||
}
|
||||
updateZoom();
|
||||
}
|
||||
@@ -931,7 +931,7 @@ void RimWellPltPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
RimWellLogTrack* const plotTrack = dynamic_cast<RimWellLogTrack*>( plotByIndex( 0 ) );
|
||||
if ( plotTrack )
|
||||
{
|
||||
plotTrack->setAutoScaleXEnabled( true );
|
||||
plotTrack->setAutoScalePropertyValuesEnabled( true );
|
||||
}
|
||||
updateZoom();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user