mdboom/matplotlib — comment on commit c7c275d756b8488bfcad5a5a78e529e4db0bd3f0
File:  line 0
By max-arnold:

On my machine (OS X Lion, py27-matplotlib @1.1.0_0+qt4) this doesn't work. I removed try/except and the result is:

preferredencoding = locale.getpreferredencoding(matplotlib.rcParams['axes.formatter.use_locale']).strip()

AttributeError: 'module' object has no attribute 'rcParams'