scalarFormatter

With MPL 0.62.4, the following script is yielding a few badly formatted y-axis labels:

import matplotlib
from matplotlib.matlab import *

a=array([2,4,6,8,10,12,14,16,18,20])*1e5
plot(a)
show()

I tried adding a "print s,m" statement after line 272: m = self._zerorgx.match(s), where s is the original text. Here is the output:

2.0e+005 <_sre.SRE_Match object at 0x01249608>
4.0e+005 <_sre.SRE_Match object at 0x01249608>
6.0e+005 <_sre.SRE_Match object at 0x01249608>
8.0e+005 <_sre.SRE_Match object at 0x01249608>
1.0e+006 <_sre.SRE_Match object at 0x01249608>
1.2e+006 None
1.4e+006 None
1.6e+006 None
1.8e+006 None
2.0e+006 <_sre.SRE_Match object at 0x01249608>

_zerorgx = re.compile('^(.*?)\.?0+(e[+-]\d+)?$'), which is greek to me (and I dont have a good reference on regexp's).

Any ideas as to why 1.2e+006 is not resulting in an re match?

Darren