update read_log() for general (float) x values