mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Legend config: Removed obsolete min value threshold
p4#: 20626
This commit is contained in:
@@ -405,13 +405,13 @@ void RimLegendConfig::recreateLegend()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimLegendConfig::adjust(double domainValue, double precision)
|
||||
{
|
||||
double decadeValue = cvf::Math::abs(domainValue);
|
||||
double threshold = 1e-6;
|
||||
if (decadeValue < threshold)
|
||||
double absDomainValue = cvf::Math::abs(domainValue);
|
||||
if (absDomainValue == 0.0)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
double logDecValue = log10(decadeValue);
|
||||
|
||||
double logDecValue = log10(absDomainValue);
|
||||
logDecValue = cvf::Math::ceil(logDecValue);
|
||||
|
||||
double factor = pow(10.0, precision - logDecValue);
|
||||
|
||||
Reference in New Issue
Block a user