in logarithmic mode minval must not be <= 0