#2396 Set better fixed y-axis range for logarithmic scaling

This commit is contained in:
Gaute Lindkvist 2018-11-27 11:29:55 +01:00
parent 49b5b60352
commit d743602b81

View File

@ -438,7 +438,14 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt(RiaEclipseUnitTools::Unit
if (fixedLeftYAxis)
{
plot->setAxisScale(QwtPlot::yLeft, 0.0, 1.0);
if (logScaleLeftAxis)
{
plot->setAxisScale(QwtPlot::yLeft, 1.0e-6, 1.0);
}
else
{
plot->setAxisScale(QwtPlot::yLeft, 0.0, 1.0);
}
plot->setAxisAutoScale(QwtPlot::yLeft, false);
}
else