mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-20 11:48:35 -06:00
Make sure errorbars use the same axis as the data curve (#9212)
* Make sure errorbars use the same axis as the data curve
This commit is contained in:
parent
a1e7b64d92
commit
bea90bc841
@ -500,7 +500,12 @@ void RiuQwtPlotCurve::setXAxis( RiuPlotAxis axis )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuQwtPlotCurve::setYAxis( RiuPlotAxis axis )
|
||||
{
|
||||
if ( m_plotWidget ) QwtPlotCurve::setYAxis( m_plotWidget->toQwtPlotAxis( axis ) );
|
||||
if ( m_plotWidget )
|
||||
{
|
||||
auto axisId = m_plotWidget->toQwtPlotAxis( axis );
|
||||
QwtPlotCurve::setYAxis( axisId );
|
||||
if ( m_qwtCurveErrorBars ) m_qwtCurveErrorBars->setYAxis( axisId );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user