fix handling of values <= zero for logarithmic display