Log scale to matplotlib