mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8450 Qt Charts: generate nicer numbers when auto scaling.
This commit is contained in:
parent
79614e09e9
commit
2bea99eb5f
@ -679,6 +679,12 @@ void RiuQtChartsPlotWidget::setAxisAutoScale( RiuPlotAxis axis, bool autoScale )
|
||||
if ( autoScale )
|
||||
{
|
||||
rescaleAxis( axis );
|
||||
QAbstractAxis* ax = plotAxis( axis );
|
||||
QValueAxis* valueAxis = dynamic_cast<QValueAxis*>( ax );
|
||||
if ( valueAxis )
|
||||
{
|
||||
valueAxis->applyNiceNumbers();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user