mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9280 Fix missing horizontal error bars
* #9280 Fix missing horizontal error bars. The x axis was not assigned properly for the error bars in the plot curve. * Propagate error bar visibility state
This commit is contained in:
parent
f3a3e04e1f
commit
921c90beea
@ -513,6 +513,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
|||||||
else if ( curveDefToAdd.address().sourceType() == RifDataSourceForRftPlt::OBSERVED_FMU_RFT )
|
else if ( curveDefToAdd.address().sourceType() == RifDataSourceForRftPlt::OBSERVED_FMU_RFT )
|
||||||
{
|
{
|
||||||
auto curve = new RimWellLogRftCurve();
|
auto curve = new RimWellLogRftCurve();
|
||||||
|
curve->setErrorBarsVisible( m_showErrorInObservedData );
|
||||||
plotTrack->addCurve( curve );
|
plotTrack->addCurve( curve );
|
||||||
|
|
||||||
auto observedFmuRftData = curveDefToAdd.address().observedFmuRftData();
|
auto observedFmuRftData = curveDefToAdd.address().observedFmuRftData();
|
||||||
|
@ -492,7 +492,12 @@ void RiuQwtPlotCurve::setSamplesFromXYErrorValues( const std::vector<double>&
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuQwtPlotCurve::setXAxis( RiuPlotAxis axis )
|
void RiuQwtPlotCurve::setXAxis( RiuPlotAxis axis )
|
||||||
{
|
{
|
||||||
if ( m_plotWidget ) QwtPlotCurve::setXAxis( m_plotWidget->toQwtPlotAxis( axis ) );
|
if ( m_plotWidget )
|
||||||
|
{
|
||||||
|
auto axisId = m_plotWidget->toQwtPlotAxis( axis );
|
||||||
|
QwtPlotCurve::setXAxis( axisId );
|
||||||
|
if ( m_qwtCurveErrorBars ) m_qwtCurveErrorBars->setXAxis( axisId );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user