*/
void Plot2d_ViewFrame::setSecondY( const bool& theSecondY )
{
- myPlot->enableAxis(QwtPlot::yRight, theSecondY);
+ myPlot->enableAxis(QwtPlot::yRight, theSecondY );
mySecondY = theSecondY;
}
}
setCurveType( aPCurve, myCurveType );
aPCurve->setData( curve->horData(), curve->verData(), curve->nbPoints() );
- if ( mySecondY )
- aPCurve->setYAxis( QwtPlot::yRight );
+ aPCurve->setYAxis( curve->getYAxis() );
}
updateTitles();
if ( update )
}
aPCurve->setTitle( curve->getVerTitle() );
aPCurve->setVisible( true );
- aPCurve->setYAxis( mySecondY ? QwtPlot::yRight : QwtPlot::yLeft );
+ aPCurve->setYAxis( curve->getYAxis() );
if ( update )
myPlot->replot();
}