Configuring exponent labels in matplotlib.